Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2008



Tip: Looking for answers? Try searching our database.

Validating an XML Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
akalan - 09 May 2008 22:55 GMT
Being that xmlValidate() cannot process a schema (xsd) having either an import
or an include, is there another way to validate an XML document from within a
Coldfusion application?

Re-writing the schema is not an option.
BKBK - 12 May 2008 15:44 GMT
What information do you get when you dump the function?
akalan - 12 May 2008 18:00 GMT
ROOT CAUSE:
java.lang.StackOverflowError
    at java.util.Hashtable.get(Hashtable.java:334)
    at java.util.Properties.getProperty(Properties.java:932)
    at java.lang.System.getProperty(System.java:655)
    at org.apache.xerces.impl.XMLEntityManager$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.xerces.impl.XMLEntityManager.getUserDir(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.expandSystemIdStrictOff(Unknown
Source)
    at org.apache.xerces.impl.XMLEntityManager.expandSystemId(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
.
.
.
.
BKBK - 17 May 2008 09:34 GMT
I am still looking into it. I'm looking in the direction of a workaround.

I did a test in which there were include and import elements in the schema. Like you, I got a StackOverflow error.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.