Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello everyone,
I feel like I've been posting a lot lately so excuse my newness to Windchill.
I have a Java package that is using Info Engine to extract information from WC. The pkg runs several tasks, one of which saves results to an external XML file. My process then walks through the XML file using DOM and extracts the appropriate files.
My problem is that it appears that the DOM parser in Java doesn't work the same running under Windchill as it does standalone or even under a separate Tomcat installation. I can confirm that the pkg is reading the XML file. But it appears to be unable to parse the XML under Windchill to give me the data I need from the XML file.
When I run the pkg as a standalone jar, it is fine. I included it into a servlet under a standalone Tomcat host and it ran fine there, too. So, I know it's not my package or Tomcat that are causing the issue.
Does anyone have any information about usingorg.w3c.dom and org.xml.sax.SAXException in the Windchill runtime?
Thanks!
What parser is being called under Windchill? I'm using DocumentBuilder with XPath to traverse the XML. This works in every other environment.