This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes entityResolver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "entityResolver" Watch "entityResolver" New topic
Author

entityResolver

Eun Mi
Greenhorn

Joined: Oct 10, 2011
Posts: 7
Hello,
I'm validating xml against xsd, and generate jaxb by using ant and eclipse. I have a jar and I call xsd within a jar file. I need to validate xml against xsd file...
So, I got this far... but I'm not sure about entityresolver.... /i just have to have it in my code../ .. but actually I'm not sure, if I uses this right. Please, some advices?


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I don't quite know what you are expecting as answers... I assume you have compiled the code without errors? Then the answer to "Is it right?" is the same as the answer to "Does it do what you expect it to do?"

I do think, though, that if you want your parser to validate your XML against a schema, then this line of code looks wrong:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: entityResolver
 
Similar Threads
How to use DomParser.parse() to parse an XML String instead of the XML location?
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element
Parse/Validate with DSIG schema issue
Read File from jar file
Entity Resolver not working fine while unmarshalling using JAXB ?