I have html file that is a well-formed xml document (tags are paired), but contains anchor like the one below:  &lt;a href="mailto:test@domain.com?subject=Hello&amp;body=someMessageHere" target="_top" style="text-decoration: none;"&gt;link&lt;/a&gt;  Xml parser invoked by XDocument.Load throws XmlException that says:  Additional information: '=' is an unexpected token. The expected token is ';'.  How can I instruct parser that I '&amp;body' is not an entity? Do I must escape '&amp;' character?
I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries.
Possible Duplicate:          In  the following claim was mentioned:  $R/I \otimes_R M \cong M / IM$  So I tried to prove it. Can you help me finish my proof? Thanks!    We recall that $M \otimes_R -$ is a covariant right-exact functor that it is exact if $M$ is flat and we observe that the following is an exact sequence: $$ 0 \to IM \xrightarrow{i} M \xrightarrow{\pi} M / IM \to 0$$  $R/I$ is an $R$ module since $R/I$ is a subring of $R$ closed with respect to multiplication from $R$ but it is not necessarily flat hence we only get exactness on one side:  $$  (R/I) \otimes_R IM \xrightarrow{id \otimes i} (R/I) \otimes_R M \xrightarrow{id \otimes \pi} (R/I) \otimes_R M / IM \to 0$$  Then $$ \mathrm{Im(id \otimes \pi)} = (R/I) \otimes_R M / IM  \cong (R/I) \otimes_R M / \mathrm{Ker} (id \otimes i) $$  so we want to show two things:   (i) that $\mathrm{Ker} (id \otimes i) = \{0\}$. To this end let $r + I \otimes im \in (R/I) \otimes_R  IM $ and assume $ id \otimes i(r + I \otimes im ) = r + I \otimes im = 0 + I \otimes 0$. I'm not sure how to proceed from here.   (ii) and that $M /IM \cong (R/I) \otimes_R M / IM $  Can you help me? Thanks. Inbox chops messages in the middle of an HTML character reference The messages in the inbox get chopped if they too long, and the chop can occur in the middle of an HTML character reference as can be seen in this screenshot:    The character being chopped is [ and it appears inside a code snippet, in case it makes a difference. I typed up an assignment with a lot of numbers in LaTeX and turned it in to my adviser.  When he returned it to me with some corrections, one of which was a lot of $ around my numbers.  I understand that $ are necessary around some mathematical formulas, but I was just using numbers like -2 and 4.  I did not see any change in the font of the numbers when I added the $ either.  Since my adviser did not want to give me an explanation, what is the rationale? Escape Key in the Chat Is it theoretically possible that every person in this village has a different jar of coins? A village has about $1$ million residents. Suppose each resident has a jar with $100$ coins in it.Two jars are considered to be “equivalent” if they have the same number of 10c, 20c, 50c, $\$$1 and $\$$2 coins in them. How many different (i.e. nonequivalent) jars of coins exist? Is it theoretically possible that every person in this village has a different jar of coins?  I understood that if we have $k_1$ 10 coins in the jar where $k_1$ is between $0$ and $100$ inclusive, then there are $100-k_1$ coins of other denominations in the jar. Likewise, we also have $k_2$ 20c coins in the jar where $k_2$ is between $0$ and $100$ inclusive, so the combined number of 50c, $\$$1, and $\$$2 coins in the jar is $100-k_1-k_2$. And we always have some $k_1, k_2, k_3, k_4, k_5$, let's say, so that the sum of those $k$'s is $100$.  I got stuck since I don't know how to 'compare' the number of coins in jars for different residents. On the proof that the product of diagonal matrices is a diagonal matrix? Let $A [a_{i,j}]$  and $B =[b_{ij}]$   be two diagonal matrices in   $M_n(F)$. Let $i \ne j \in \left\{1, \ldots, n \right\}$. Using the   product rule, we obtain      $$(AB)_{ij} = \sum_{k=1}^{n} a_{ik}b_{kj}$$      We claim that $a_{ik}b_{kj} =0$ for all $k \in \left\{1, \ldots, n \right\}$ thus $(AB)_{ij}=0$ for all $i \ne j$ and $AB$ is diagonal. To    prove the claim, note that since $i \ne j$ , we have $i \ne k$ or $    k\ne j$. Thus either $a_{ik} = 0$ (since $A$ is diagonal) or $b_{kj} =  0$ (since $B$ is diagonal), thus in all cases $a_{ik}b_{kj}=0$ and the   claim is proved.   Where does the bit "we have $i \ne k$ or $k\ne j$" come from? I understand that since $i \ne j$, and $k$ and $j$ run over the same set of natural numbers, we also have $i \ne k$. But the "or $k \ne j$" baffles me. I understand that $k \ne j$ implies that we can have $i=k$. But that's from the other direction ($\Longleftarrow).$  Also, when it says $a_{ik}=0$ or $b_{kj}=0$ it's talking about when $i \ne k$ or $k \ne j$ right? Many thanks. How to access specific raw data on disk from java Can an infinite set A be larger than an infinite set B but still have the same cardinality? Definition. Two sets have the same cardinality iff they can be put into one-to-one correspondence; or,     $$A \simeq B \iff |A| = |B| $$    This definition applies to infinite as well as to finite sets. It follows from the last three definitions that set $A$ has a larger cardinality than set $B$ iff both    a proper subset of $A$ and the whole of $B$ can be put into one-to-one correspondence the whole of $A$ cannot be put into one-to-one correspondence with any proper subset of $B$.   From: A Crash Course in the Mathematics Of Infinite Sets Peter Suber, Philosophy Department, Earlham College  The last part specifically refers to proper subsets of $B$.  That excludes at least one subset of $B$, namely $B$.  So, is it possible that the whole of A cannot be put into one-to-one correspondence with any proper subset of $B$ but may with $B$ itself? Why did he not say "any subset of $B$"? Convergence of $\sqrt{n}x_{n}$ where $x_{n+1} = \sin(x_{n})$ Consider the sequence defined as  $x_1 = 1$  $x_{n+1} = \sin x_n$  I think I was able to show that the sequence $\sqrt{n} x_{n}$ converges to $\sqrt{3}$ by a tedious elementary method which I wasn't too happy about.  (I think I did this by showing that $\sqrt{\frac{3}{n+1}} &lt; x_{n} &lt; \sqrt{\frac{3}{n}}$, don't remember exactly)  This looks like it should be a standard problem.   Does anyone know a simple (and preferably elementary) proof for the fact that the sequence $\sqrt{n}x_{n}$ converges to $\sqrt{3}$? Short story about a crew finding an ancient alien ship filled with tons of artifacts from their society Underworld Connections: Tapping the Land for mana and ability? Resize image in Python without losing EXIF data I need to resize jpg images with Python without losing the original image's EXIF data (metadata about date taken, camera model etc.). All google searches about python and images point to the PIL library which I'm currently using, but doesn't seem to be able to retain the metadata. The code I have so far (using PIL) is this:  img = Image.open('foo.jpg') width,height = 800,600 if img.size[0] &lt; img.size[1]:     width,height = height,width  resized_img = img.resize((width, height), Image.ANTIALIAS) # best down-sizing filter resized_img.save('foo-resized.jpg')   Any ideas? Or other libraries that I could be using? Academic rank equivalence between the UK and the US systems How to split a string in Java How many roots have a complex number with irrational exponent? If a rational exponent on a complex number $z^q$ is the representation of a finite number of roots, then if the exponent is irrational this mean that there is infinite countable roots?  If this is the case... the cardinality of the number of roots is the same for any irrational exponent? Thanks in advance.  NOTE: there are different questions about irrational exponents but no one answer what Im searching so please dont mark this as repeated. Is it time to be rid of automatic down votes on certain closed questions? Right now,  carry automatic downvotes.  The  for this was largely to enforce specific quality bans in part because people were not down voting questions. Now that question down votes are free on questions and it seems to be pretty commonplace for question quality bans to trigger, even without the automatic votes from closure, and we have completely revamped the closure system. Is it time to reevaluate whether or not these automatic votes are still a good idea?  What benefits do the automatic votes provide and have they effectively run their course? How can I overwrite/print over the current line in Windows command line? On Unix, I can either use \r (carriage return) or \b (backspace) to overwrite the current line (print over text already visible) in the shell.  Can I achieve the same effect in a Windows command line from a Python script?  I tried the curses module but it doesn't seem to be available on Windows. If $R$ is an infinite ring, then $R$ has either infinitely many zero divisors, or no zero divisors Please help me to prove that if $R$ is an infinite ring, then $R$ has either an infinite number of zero divisors, or it has no zero divisors. Find all solutions to the equation $(z+1)^6=z^6$. Express the solutions in simplified rectangular form. Hint: Clearly $z=0$ is not a solution. $$(z+1)^6=z^6 $$ $$\frac{(z+1)^6}{z^6 }=1$$ $$\left(\frac{(z+1)}{z }\right)^6=1$$ $$\left(\frac{(z+1)}{z }\right)^6=\cos(2*\pi*k)+i\sin(2*\pi*k)$$ $$\frac{(z+1)}{z }=\left(\cos(2*\pi*k)+i\sin(2*\pi*k)\right)^{1\over6}$$ $$1+\frac{1}{z }=\cos({2*\pi*k\over6})+i\sin({2*\pi*k\over6})$$  $$\frac{1}{z }=(\cos({\pi*k\over3})-1)+i\sin({\pi*k\over3})$$ $$\frac{1}{(\cos({\pi*k\over3})-1)+i\sin({\pi*k\over3}) }=z$$ I dont know how else to solve this. A lot of help is appreciated. Also i know that k should go from 1-5. After Hoth, why did Vader pursue the Millennium Falcon instead of Luke's X-Wing? In The Empire Strikes Back film, the opening crawl says:     The evil lord Darth Vader, obsessed with finding young Skywalker, has dispatched thousands of remote probes into the far reaches of space....   It has also been established in Return of the Jedi that Force users can sense each other:     Chewie whines nervously. Luke stares at the Huge Super Star Destroyer    that looms ever larger before them.      LUKE: Vader's on that ship.   If Darth Vader is obsessed with finding Luke and he can sense his presence, the obvious thing to do would be to follow Luke's X-Wing after the battle of Hoth rather than the Millennium Falcon. Why didn't he?