Questions tagged [xml-parsing]

An XML parser goes through text documents containing XML trees and allows the information in the hierarchy to be used. Use this tag for problems implementing an XML parser or generated by the use of an existing parser in a given language.

An XML parser goes through text documents containing XML trees and allows the information in the hierarchy to be used. Use this tag for problems implementing an XML parser or generated by the use of an existing parser in a given language.

An XML parser converts an XML document into an XML DOM object - which can then be manipulated with JavaScript. All modern browsers have a built-in XML parser.

The XML document specification places requirements on what an XML processor must do and not do, but the application is outside its scope. The processor (as the specification calls it) is often referred to colloquially as an XML parser.

13856 questions
2
votes
2 answers

Omitting XML Declaration when invoking Transformer with StAXResult

I would like to copy multiple XML nodes from a source XML file to a target file. Both source and target files are very large, so I will use StAX. Typically the file I'm trying to process looks as follows:
A List of…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> <a href="../../questions/tagged/stax" class="post-tag grid--cell" title="show questions tagged 'stax'" rel="tag">stax</a> <a href="../../questions/tagged/transformer-model" class="post-tag grid--cell" title="show questions tagged 'transformer-model'" rel="tag">transformer-model</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 07 '12 at 08:54">asked Mar 07 '12 at 08:54</time> <a href="../../users/1192122/duncan-paul" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1192122.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Duncan Paul" /> </a> <div class="s-user-card--info"> <a href="../../users/1192122/duncan-paul" class="s-user-card--link">Duncan Paul</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">485</li> <li class="s-award-bling s-award-bling__silver" title="5 silver badges">5</li> <li class="s-award-bling s-award-bling__bronze" title="13 bronze badges">13</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9557501"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9557501/php-xmlreader-not-loading-some-xml-nodes" class="question-hyperlink">PHP XMLReader not loading some xml nodes</a></h3> <div class="excerpt">This is the xml: <Root xmlns:sql='urn:schemas-microsoft-com:xml-sql'> <Truserv> <Item item_nbr="100024" srp_cost="11.99" member_cost="4.90" ds_cost="4.08" short_description="36" Bent SB Axe Handle" vendor_id="74658" dpt_code="L "…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> <a href="../../questions/tagged/xmlreader" class="post-tag grid--cell" title="show questions tagged 'xmlreader'" rel="tag">xmlreader</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 04 '12 at 18:11">asked Mar 04 '12 at 18:11</time> <a href="../../users/1098649/aamir-siddique" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1098649.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Aamir Siddique" /> </a> <div class="s-user-card--info"> <a href="../../users/1098649/aamir-siddique" class="s-user-card--link">Aamir Siddique</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">334</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="15 bronze badges">15</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9519743"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9519743/why-has-my-xslt-style-suddenly-stopped-parsing-the-product-advertising-api-xml" class="question-hyperlink">Why has my XSLT style suddenly stopped parsing the Product Advertising API XML response?</a></h3> <div class="excerpt">Can anyone tell me why this xslt file is not parsing the sample xml file I've attached? It has been working for a couple of years but it has suddenly stopped. Without the stylesheet the xml file returns from Amazon ok but I can't style it now. The…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/amazon-web-services" class="post-tag grid--cell" title="show questions tagged 'amazon-web-services'" rel="tag">amazon-web-services</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> <a href="../../questions/tagged/amazon-product-api" class="post-tag grid--cell" title="show questions tagged 'amazon-product-api'" rel="tag">amazon-product-api</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 01 '12 at 16:13">asked Mar 01 '12 at 16:13</time> <a href="../../users/1101686/mark-54" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1101686.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Mark_54" /> </a> <div class="s-user-card--info"> <a href="../../users/1101686/mark-54" class="s-user-card--link">Mark_54</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,273</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="15 silver badges">15</li> <li class="s-award-bling s-award-bling__bronze" title="21 bronze badges">21</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9509427"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9509427/php-how-to-sort-xml-alphabetically-by-attribute-before-for-each-loop" class="question-hyperlink">PHP: How to sort XML alphabetically by attribute before "for each" loop</a></h3> <div class="excerpt">The setup: I have an external XML file I have no control over, here is it: 001.xml <?xml version="1.0" encoding="utf-8"?> <Gallery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="001"…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 01 '12 at 01:34">asked Mar 01 '12 at 01:34</time> <a href="../../users/850906/amesguich" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/850906.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="amesguich" /> </a> <div class="s-user-card--info"> <a href="../../users/850906/amesguich" class="s-user-card--link">amesguich</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">31</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="5 bronze badges">5</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9470008"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>3</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9470008/phone-directory-in-ios" class="question-hyperlink">Phone directory in iOS</a></h3> <div class="excerpt">I am creating a IOS phone directory app. I am trying to download a XML file from a url. This XML file will then be used to populate the directory app with phone numbers, names and identifications of all the people in the directory. I'm new to IOS…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ios" class="post-tag grid--cell" title="show questions tagged 'ios'" rel="tag">ios</a> <a href="../../questions/tagged/ios5" class="post-tag grid--cell" title="show questions tagged 'ios5'" rel="tag">ios5</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 27 '12 at 18:14">asked Feb 27 '12 at 18:14</time> <a href="../../users/1236157/roland-cross" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1236157.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Roland Cross" /> </a> <div class="s-user-card--info"> <a href="../../users/1236157/roland-cross" class="s-user-card--link">Roland Cross</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">21</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9463487"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9463487/how-to-get-the-text-data-separately-in-the-list-of-arrays-in-kml-file-android" class="question-hyperlink">How to get the text(data) separately in the list of arrays in kml file? android</a></h3> <div class="excerpt">I want to get the list of restaurants in my current location. I want to get the text (information) alone from the xml file. I am getting it, but other unwanted tag's text in the xml file are also coming, that is (OK, html attributions...); Give me…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/android" class="post-tag grid--cell" title="show questions tagged 'android'" rel="tag">android</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 27 '12 at 10:30">asked Feb 27 '12 at 10:30</time> <a href="../../users/1155516/firnaz" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1155516.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Firnaz" /> </a> <div class="s-user-card--info"> <a href="../../users/1155516/firnaz" class="s-user-card--link">Firnaz</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">553</li> <li class="s-award-bling s-award-bling__silver" title="7 silver badges">7</li> <li class="s-award-bling s-award-bling__bronze" title="31 bronze badges">31</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9439141"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>4</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9439141/xml-processing-performance-issue" class="question-hyperlink">XML processing - performance issue</a></h3> <div class="excerpt">I have a xml document ~10mb in size. It has relatively simple structure but has alot of binary data in it. I need to get data from it and save it in db. Tried jaxb metro - works really slow. I am currently trying jibx for this but unmarshalling a…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/jaxb" class="post-tag grid--cell" title="show questions tagged 'jaxb'" rel="tag">jaxb</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> <a href="../../questions/tagged/jibx" class="post-tag grid--cell" title="show questions tagged 'jibx'" rel="tag">jibx</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 24 '12 at 22:49">asked Feb 24 '12 at 22:49</time> <a href="../../users/1020677/emmma1223" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1020677.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="emmma1223" /> </a> <div class="s-user-card--info"> <a href="../../users/1020677/emmma1223" class="s-user-card--link">emmma1223</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">67</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="9 bronze badges">9</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9408837"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9408837/android-database-and-xml-parsing" class="question-hyperlink">android database and xml parsing</a></h3> <div class="excerpt">I want to know that, is it possible to create the database(including structures and relation between the tables eg. number of columns etc) from the XML feed in android application? If so, then how it can be done? I'm using sax parser. </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/android" class="post-tag grid--cell" title="show questions tagged 'android'" rel="tag">android</a> <a href="../../questions/tagged/database" class="post-tag grid--cell" title="show questions tagged 'database'" rel="tag">database</a> <a href="../../questions/tagged/sqlite" class="post-tag grid--cell" title="show questions tagged 'sqlite'" rel="tag">sqlite</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 23 '12 at 07:31">asked Feb 23 '12 at 07:31</time> <a href="../../users/1129256/cvd" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1129256.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="CVD" /> </a> <div class="s-user-card--info"> <a href="../../users/1129256/cvd" class="s-user-card--link">CVD</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">27</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9383293"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9383293/scala-importing-an-xml-to-map" class="question-hyperlink">Scala Importing an XML to Map</a></h3> <div class="excerpt">I'm just learning scala and im trying to import an XML file to a Map. The XML holds definitions using <word></word> and <description></description>. When I attempt to create the map I get the error: Value update is not member of…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/scala" class="post-tag grid--cell" title="show questions tagged 'scala'" rel="tag">scala</a> <a href="../../questions/tagged/dictionary" class="post-tag grid--cell" title="show questions tagged 'dictionary'" rel="tag">dictionary</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 21 '12 at 18:45">asked Feb 21 '12 at 18:45</time> <a href="../../users/959799/meriley" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/959799.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="meriley" /> </a> <div class="s-user-card--info"> <a href="../../users/959799/meriley" class="s-user-card--link">meriley</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,831</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="20 silver badges">20</li> <li class="s-award-bling s-award-bling__bronze" title="33 bronze badges">33</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9360432"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9360432/how-do-i-handle-heavy-page-loads-with-php" class="question-hyperlink">How do i handle heavy page loads with php</a></h3> <div class="excerpt">I have a script that generates xml of products on users webstores. Now, this xml needs to be read from the browser into mysql database using php. The issue is that, sometimes the size of the xml is such large in (MegaBytes) that it does not print…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> <a href="../../questions/tagged/html-parsing" class="post-tag grid--cell" title="show questions tagged 'html-parsing'" rel="tag">html-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 20 '12 at 11:32">asked Feb 20 '12 at 11:32</time> <a href="../../users/648608/karto" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/648608.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="karto" /> </a> <div class="s-user-card--info"> <a href="../../users/648608/karto" class="s-user-card--link">karto</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,538</li> <li class="s-award-bling s-award-bling__gold" title="8 gold badges">8</li> <li class="s-award-bling s-award-bling__silver" title="43 silver badges">43</li> <li class="s-award-bling s-award-bling__bronze" title="68 bronze badges">68</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9353380"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9353380/parseexception-only-on-galaxy-nexus" class="question-hyperlink">ParseException only on Galaxy Nexus</a></h3> <div class="excerpt">I tested my app on 5 various phones and this exception occurs only on Samsung Galaxy Nexus: java.text.ParseException: Unparseable date: "Sun, 19 Feb 2012 14:02:43 +0100" (at offset 0) My input string: <pubDate>Sun, 19 Feb 2012 14:02:43…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/android" class="post-tag grid--cell" title="show questions tagged 'android'" rel="tag">android</a> <a href="../../questions/tagged/date" class="post-tag grid--cell" title="show questions tagged 'date'" rel="tag">date</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 19 '12 at 21:22">asked Feb 19 '12 at 21:22</time> <a href="../../users/867607/pawel" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/867607.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Paweł" /> </a> <div class="s-user-card--info"> <a href="../../users/867607/pawel" class="s-user-card--link">Paweł</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">363</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="5 silver badge">5</li> <li class="s-award-bling s-award-bling__bronze" title="13 bronze badge">13</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9258031"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9258031/how-to-return-to-root-element-in-qdomdocument" class="question-hyperlink">How to return to Root Element in QDomDocument ?</a></h3> <div class="excerpt">I am currently working on QDomDocument and I want to implement several functions but I want to use just one QDomDocument. So to do that while working I need to return to Root value sometimes. For example I have an XML like this ; <Root> <Node A> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/qt" class="post-tag grid--cell" title="show questions tagged 'qt'" rel="tag">qt</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 13 '12 at 09:20">asked Feb 13 '12 at 09:20</time> <a href="../../users/379732/mehmetozer" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/379732.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="mehmetozer" /> </a> <div class="s-user-card--info"> <a href="../../users/379732/mehmetozer" class="s-user-card--link">mehmetozer</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">848</li> <li class="s-award-bling s-award-bling__gold" title="6 gold badges">6</li> <li class="s-award-bling s-award-bling__silver" title="14 silver badges">14</li> <li class="s-award-bling s-award-bling__bronze" title="30 bronze badges">30</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9254653"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9254653/how-to-read-schema-based-xml-files-with-nested-elements-into-table-type-object" class="question-hyperlink">How to read schema-based xml files with nested elements into table-type objects?</a></h3> <div class="excerpt">Along the lines of Best practices to parse xml files? I am looking for a quick, simple method to take a carefully rendered XML schema and a bunch of instances of xml data built upon it, and read them quickly into some DataSet-like object. (Can be…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/c#-4.0" class="post-tag grid--cell" title="show questions tagged 'c#-4.0'" rel="tag">c#-4.0</a> <a href="../../questions/tagged/dataset" class="post-tag grid--cell" title="show questions tagged 'dataset'" rel="tag">dataset</a> <a href="../../questions/tagged/xsd" class="post-tag grid--cell" title="show questions tagged 'xsd'" rel="tag">xsd</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 13 '12 at 01:50">asked Feb 13 '12 at 01:50</time> <a href="../../users/409856/downwitch" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/409856.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="downwitch" /> </a> <div class="s-user-card--info"> <a href="../../users/409856/downwitch" class="s-user-card--link">downwitch</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,362</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="19 silver badges">19</li> <li class="s-award-bling s-award-bling__bronze" title="40 bronze badges">40</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9215273"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>5</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9215273/flattening-an-xml-document" class="question-hyperlink">Flattening an XML document</a></h3> <div class="excerpt">I am currently trying to flatten a deep-structured XML document in C# so that every value of an element is converted to an attibute. The XML structure is as follows: <members> <member xmlns="mynamespace" id="1" status="1"> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/parsing" class="post-tag grid--cell" title="show questions tagged 'parsing'" rel="tag">parsing</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 09 '12 at 17:00">asked Feb 09 '12 at 17:00</time> <a href="../../users/201681/bomortensen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/201681.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="bomortensen" /> </a> <div class="s-user-card--info"> <a href="../../users/201681/bomortensen" class="s-user-card--link">bomortensen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,346</li> <li class="s-award-bling s-award-bling__gold" title="10 gold badges">10</li> <li class="s-award-bling s-award-bling__silver" title="53 silver badges">53</li> <li class="s-award-bling s-award-bling__bronze" title="74 bronze badges">74</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9195286"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9195286/android-write-a-xml-on-sd-card" class="question-hyperlink">Android: Write a xml on SD-Card</a></h3> <div class="excerpt">I have a problem with my android-app. I want to save a Data-list in a xml and save it to SD-Card. Here the code fragment from my activity: Button btnActivity = (Button)findViewById(R.id.modul_save); btnActivity.setOnClickListener(new…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/android" class="post-tag grid--cell" title="show questions tagged 'android'" rel="tag">android</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> <a href="../../questions/tagged/sd-card" class="post-tag grid--cell" title="show questions tagged 'sd-card'" rel="tag">sd-card</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 08 '12 at 14:31">asked Feb 08 '12 at 14:31</time> <a href="../../users/1197351/javanullpointer" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1197351.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="JavaNullPointer" /> </a> <div class="s-user-card--info"> <a href="../../users/1197351/javanullpointer" class="s-user-card--link">JavaNullPointer</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,199</li> <li class="s-award-bling s-award-bling__gold" title="5 gold badges">5</li> <li class="s-award-bling s-award-bling__silver" title="21 silver badges">21</li> <li class="s-award-bling s-award-bling__bronze" title="43 bronze badges">43</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/xml-parsing_page=90" rel="prev" title="Go to page 90">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/xml-parsing_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/xml-parsing_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/xml-parsing_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/xml-parsing_page=99" rel="" title="Go to page 99">99</a> <a class="s-pagination--item" href="../../questions/tagged/xml-parsing_page=100" rel="" title="Go to page 100">100</a> <a class="s-pagination--item" href="../../questions/tagged/xml-parsing_page=92" rel="next" title="Go to page 92"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>