The xml file that i get is huge in size, however while i need only specific parts of the file in random manner (hence cannot use SAX) while processing. Is there any way by which i can load only a partial dom tree in memory using xerces dom parser?
Load partial xml using xerces dom parser
404 Views Asked by 51k At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in DOM
- getElementsByName returns an element with a wrong name
- Scala.js: Selecting and manipulating generated SVG
- How to add different text after echo output using PHP
- Undefined when passing DOM object in Javascript
- jQuery trigger when inner html DOM ready
- QDomDocument toString
- How to use DOMParser in PhantomJS?
- How to append the text (increasing order) using DOM parser in PHP?
- How's Virtual DOM implementation is different than createDocumentFragment() if no state is observed?
- simple dom parser double find() doesn't work?
- Polymer 1.0 Conditional dom-repeat issue
- Javascript help using createElement() and appendChild()
- How to stop XML Tag Attributes from sorting in Ascending Order after modifying the XML file using Java?
- getAttribute by TagName - JS
- Html dom parser php table
Related Questions in XERCES
- XSD 1.1 assert implementation-dependant result
- Android XML validation using XSD ( both xerces and SchemaFactory) error
- How to disable External Entity Resolution in xerces C++ DOMLSParser
- Avoid dependency/classpath conflict between Gradle plugins
- Multi-Namespace XML Document with no prefixes
- Pretty-printing XML using Java
- Quartz XMLSchedulingDataProcessorPlugin conflict with xerces.jar
- Making Apache Xerces support Xpath 2.0
- Xalan-c++: returning a node with XPath (reference to local pointer)
- Error with Orbeon Forms
- Crash in xerces while validating XML
- How can I reference an XSD off the CLASSPATH for validating my XML?
- Xerces SAX parser ignore the xmlxs:xsi attribute as an attribute of an element
- XERCESC 2.7 Memory Leak Problem
- gdb unable to set breakpoint
Related Questions in XERCES-C
- How do I use assertions in with Xerces C++ 3.x (CodeSynthesis XSD)?
- Can I ignore XSD schema file while using Xerces Lib in C++?
- How to disable External Entity Resolution in xerces C++ DOMLSParser
- set up Xerces on ubuntu 12.04 to use with cmake and clang
- How to use Xerces to parse XML in a string
- Crash in xerces while validating XML
- Static linking issue on Solaris sparc
- How to skip some targets using commnd line (CMake)
- What is the difference between DOCUMENT_NODE, DOCUMENT_TYPE_NODE and DOCUMENT_FRAGMENT_NODE?
- removing unwanted nodes using xerces-c
- Load partial xml using xerces dom parser
- How can I Install debug and release binaries of xerces-c without running the cmake command to generate the build directory twice?
- Serialization of C++ xerces object causes an access violation.
- xerces c issue with creating an object from a just serialized object
- How do you build Xalan-C with Visual Studio 2010?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It sounds like what you want is something like Python's pulldom which Xerces does not offer.
If you are beholden to Xerces and memory is a primary concern, you could use Xerces SAX (push) parser to populate a data structure with only the data from the XML that you care about. Then you could "randomly" access the data that you are interested in.
If you are free to use other libraries, you might look into a StAX (pull) parser. Although, I think you will still have to implement your own data structure to hold the data you're interested in. I'm not aware of a C++ equivalent of Python's pulldom.