I have an XML string from a web service, that might be lacking some child nodes.   Before parsing the XML, i want to check if all the nodes are there and correct.  Example:  &lt;fields&gt;     &lt;field RandomAttribute="True"&gt;  //these attributes should not make a difference        &lt;name&gt;Test1&lt;/name&gt;        &lt;type&gt;Text&lt;/type&gt;        &lt;id&gt;123&lt;/id&gt;     &lt;/field&gt;     &lt;field&gt;        &lt;name&gt;Test2&lt;/name&gt; //THIS field node lacks the "type" child node        &lt;id&gt;114&lt;/id&gt;     &lt;/field&gt; &lt;/fields&gt;   What is the best way, to take the whole XML, and check whether all the nodes comply to a predefined xml schema/structure?  Notice that I added a RandomAttribute to the first FIELD node, which shouldn't have any effect on the functionality.
The following code helps me validate an XML file with an XSD schema.  XmlReaderSettings settings = new XmlReaderSettings(); settings.Schemas.Add(null, xsdFilePath); settings.ValidationType = ValidationType.Schema; settings.ValidationEventHandler += new System.Xml.Schema.ValidationEventHandler(settings_ValidationEventHandler); XmlDocument document = new XmlDocument(); document.Load(xmlFilePath); XmlReader rdr = XmlReader.Create(new StringReader(document.InnerXml), settings);  while (rdr.Read()) {  } isValid = true;   The ValidationEventHandler also tells me what the errors are, but doesn't tell me on 'where' or 'on which line' they are located. Is there any way to get the line number where the XML fails to be validated?
Delete with Left Join in Oracle 10g I've been learning about Galois theory recently on my own, and I've been trying to solve tests from my university. Even though I understand all the theorems, I  seem to be having some trouble with the technical stuff. A specific example would be how to find the Galois group of a given polynomial. I know some tricks, and I manage to solve some of those questions, but some not.  For example, one of the tests asks to find the Galois group of $x^{4}-4x+2$.  I can see that it is irreducible over $\mathbb Q$ (Eisenstein), but I have no clue as to how to find its Galois group over $\mathbb Q$. Can someone tell me how to do this? General techniques concerning this sort of problems are also welcome :).  Thanks! Remove Archives in category title How I can remove word "Archives" in head title in category page? I'm using the Twenty Twelve theme and WordPress 4.   &lt;head&gt; &lt;title&gt;"name of category" Archives  | "name of sites"&lt;/title&gt; &lt;/head&gt; Why are certain example URLs like https://site.com/ and https://mysite.com/ blocked from post content? Latin Square and Graph Theory How many &quot;$1$&quot; can be selected at most, provided that only one from each row and column of the attached matrix $A$ is selected?(That is, when one &quot;$1$&quot; is selected, no other element can be selected than the row and column where that &quot;$1$&quot; is located.)  Answer: I think $6$ can be chosen.  How can I give this answer in connection with graph theory? I think it has to do with the Latin Square(or Rectangle). But I can't connect and explain. Please help me. I thought a lot, but I could not establish the relationship completely. Thanks... Is it possible to modify the title of the message box the confirm() function opens in JavaScript?   I could create a modal popup box, but I would like to do this as minimalistic as possible. I would like to do something like this:  confirm("This is the content of the message box", "Modified title");   The default title in Internet Explorer is "Windows Internet Explorer" and in Firefox it's "[JavaScript-program]." Not very informative. Though I can understand from a browser security stand point that you shouldn't be able to do this. Why do close votes expire? I nominated  to be closed as a dup. I see that two other people upvoted my comment, so they might have voted to close it as well. Now, we didn't gather enough votes, and all close votes expired ... and I can't re-vote to close. What is the motivation behind expiring close votes ... especially for close-as-duplicate? Update: Please take into consideration:  Beta Stack Exchange sites have a smaller community, and fewer people with voting privileges Closing as a duplicate is &quot;usually the right thing&quot; IMHO - much less controversial than closing as off topic. After a vote is reset, the original users can't vote again. On a small site, this makes it even harder to get a consensus of five votes. What do you call a response which does not address the question? When some one is asked a question, sometimes if they are trying to avoid answering the question, they respond with something unrelated. What is the word for that response?  Eg. A: Why were you late?     B: This bagel tastes good.  What I am looking for is the name of that response, not the action. Is there a reason why we gain ghost reputation on the meta of an SE website? bilinear form - proof I have to prove that the mapping $f(x,y)={\displaystyle \sum_{i=1}^{n}}{\displaystyle \sum_{j=1}^{n}}x_{i}y_{j}{f}(e_{i},e_{j})$  is a bilinear form, that is, inter alia, the condition: $f(x+y,z)=f(x,z)+f(y,z)$  I have: $f(x+y,z)=f\left({\displaystyle \sum_{i=1}^{n}}x_{i}e_{i}+{\displaystyle \sum_{k=1}^{n}}y_{k}e_{k},{\displaystyle \sum_{j=1}^{n}}z_{j}e_{j}\right)=f\left({\displaystyle \sum_{i=1}^{n}}{\displaystyle \sum_{k=1}^{n}}\left(x_{i}e_{i}+y_{k}e_{k}\right),{\displaystyle \sum_{j=1}^{n}}z_{j}e_{j}\right)=\ldots$  and what's next?  Help! Update Windows 10 to 1809 manually Annoying Viber notification How to delete a file in Windows with a too long filename? My wife has several files and folders that somehow ended up having filenames that have caused them to be undeleteable (can't be deleted) by normal means or via the command line. I believe the filenames are too long due to the depth of the folder structures. Does anyone know of a good utility for cleaning up files like this? possible to access custom labels dynamically? Keyboard backlight not working on an Asus N56V See .  The FN keys are not working  Using answer in  I installed the asus-wmi-dkms_0.2_all.deb.gz package  Now, using xev I see that the keys emit keycodes (for backlight keys xev says for fn-f3 and fn-f4 keycode 237)  But no keyboard backlight, also volume keys have no effect  ================ original question ========================================  I cannot enable the keyboard backlight Seems that the leds class is missing I've not found the classes used in   Description of my framework:  ===========================================================  Machine: Asus N56V laptop  ===========================================================  Software   Kubuntu 12.04 amd64  kernel (3.5.0.5-generic) and drivers from xorg-edgers fresh X crack ppa   ===========================================================  Hardware and problems   after installation do not boot - SOLVED using boot-repair every couple of hours the system freezes - SOLVED using 3.5 kernel keybord FN keys - NOT WORKING Keyboard backlight - NOT WORKING Nvidia GEFORCE GT - NOT USED glxgears says 60 fps Ethernet Atheros card - SOLVED install alx driver external subwoofer - SOLVED adding options snd-hda-intel model=asus-mode4   ==========================================================  Solutions  see the answers to the  and  question.  ========================================================== If dark matter only interacts with gravity, why doesn't it all clump together in a single point? I'm a complete layperson. As I understand, dark matter theoretically only interacts with the gravitational force, and doesn't interact with the other three fundamental forces: weak nuclear force, strong nuclear force, and electromagnetism.  Those are my understandings going in. If I'm wrong, please correct me. I've done some googling, and I haven't found anything confirming or denying that dark matter is affected by either of the fundamental nuclear forces.  So since dark matter only interacts with gravity, what causes any dark matter particle to be repelled from another? If they can pass freely through each other, and they are gravitationaly attracted to each other, why don't such particles clump together in a single 'point' in space?   It seems to me that particles occupying a single 'space' are philosophically not distinct particles, but I don't know how actual physics would play into this.  Edit , author's credentials unknown, but implicitly claims to be a physicist or astronomer, says "...[P]hysicists generally take all dark matter to be composed of a single type of particle that essentially interacts only through gravity."  Edit 2 The author is this , "Professor of Science on the physics faculty of Harvard University." Genitive case or attributive noun Is there any rule for when it is better to use genitive case or noun as adjective? I'm not sure if there is any difference in meaning in this example:     The department of accounting       The accounting department   Can I also use both forms in situations like:     The restaurants of Paris / The Paris restaurants      The room window / The window of the room How do I allow non-root access to /ttyUSB0? Since I updated from Ubuntu 10.04 (Lucid Lynx) to Ubuntu 12.04 (Precise Pangolin), I am unable to access the device connected in /ttyUSB0 if I don't have root access.  To be more specific, I use a USB-to-serial com port converter to access and configure Cisco equipment with software called . It happens that, since I upgraded to 12.04, PuTTY only sees the connected device when I run it as gksudo putty. If not, it says "unable to connect to port /ttyUSB0".  I have managed to change the permissions via chmod 666, and it works, but if I disconnect the USB device and reconnect, it goes back to root only. How do I permanently allow non-root access? I have a clue it might be via  rules, but I have no idea how to do it.  Obs.: Manufacturer and drivers are "PROLIFIC" I used MiKTeX 2.9 on windows. I have downloaded a package I want to install from the internet (manually, not through MiKTeX). The archive (*.lmza) containing the package was saved to a directory on my C:\ drive. Through MikTeX -> Maintenance -> Settings -> Packages -> Change... I can select the directory in which I have saved the archive containing the package. However, if I choose Packages shall be installed from a directory and choose the location of the package, I get this error message: C:\my\package\is\here does not seem to be a local package repository. What does it take for a directory/folder to become a local package repository? What is the difference between "I have a doubt with ...." & "I suspect there is a problem"?