• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Validating an XML Document

Guest
May 09, 2008 May 09, 2008

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

463

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2008 May 12, 2008

Copy link to clipboard

Copied

What information do you get when you dump the function?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 12, 2008 May 12, 2008

Copy link to clipboard

Copied

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)
.
.
.
.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 17, 2008 May 17, 2008

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation