wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes C++ SAX2 Parser  Help!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "C++ SAX2 Parser  Help!!!" Watch "C++ SAX2 Parser  Help!!!" New topic
Author

C++ SAX2 Parser Help!!!

S Wan
Greenhorn

Joined: Dec 09, 2004
Posts: 2
I am on a project to build a native XML database. I am using Apache Xerces-C SAX2 parser to validate the XML file, and then, break the file into fragment as whatever required... My problem is that after parsing, SAX2 translated all the encoding, entities, for instance, encoding="ISO-8859-1", using XMLFomatter.getEncodingName(), becomes encoding="LATIN1"..etc.. Is there a way, I can still have the xml content intact, exactly the same as the original file, after SAX2 parsing? I want to save XML original data into database, not those that already been translated...I really appreciate if someone could give some possible solutions.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Moving this thread to XML and Related Technologies... (this forum is for XML certification)
Please continue the discussion over there. Thanks.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: C++ SAX2 Parser Help!!!
 
Similar Threads
Retrieve XML String from parser
XML parser skips mutiple whitespaces while parsing a xml list element
sample questions
Parsing a BLOB XML object
Problem-creating .fo file to PDF