troubleshooting Question

problem with parsing xml with these jars: xercesImpl.jar and xml-apis.jar

Avatar of aquasw
aquasw asked on
Web Languages and StandardsJava
8 Comments1 Solution445 ViewsLast Modified:

after parsing the xml file I`m getting a Document object:

DocumentBuilder db =.....................
doc = db.parse(new StringBufferInputStream(source.toString()), url);  // source had the xml as string and the uri is set to the dtd directory

sposse this is the xml

     <one  name="first">
              <bbb value="4"/>

after doing the parse command somthing amazing happend:

it adding the bbb tag another attribute ( ligal one that mention in the dtd file) although I don`t need it now.
I remind you that Imust work with xercesImpl.jar and xml-apis.jar

how could I slove it ?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros