You can increase the stack size with the -Xss option on the java command,
i.e., java -Xss64m.
Mark Gertsvolf
To get to the root element of the document, you must first use
document.getDocumentElement(). Then you can traverse the children of the
root.
Since the schema itself is an XML document, why not use DOMParser to parse
the schema into a DOM and use the standard DOM API to traverse the schema?
Try using the DOMParser to read the schema into a DOM. You'll have to turn
off validation first. Then traverse the DOM to generate your text file
description. I'm developing something like this to generate a COBOL
copybook and its associated flat file from an XML instance document.
This property accepts pairs of URIs -- the first pair value is the target
namespace of the schema, the second is the actual location of the schema.
Jeff
<[
I receive the following error when trying to validate an instance document
against a schema using the DOMParser in XML4J 3.2.1:
[Error] file:///My XML Files/CM1pt0.xml:7:17: Element type "DocumentId"
must be declared.
org.xml.sax.SAXParseException: Element type "DocumentId" must be declared.
According to the XML4J 3.2.1 doc,
"http://apache.org/xml/features/validation/schema"; is set to true by
default (even though Apache's doc states that it is false by default). To
verify that the feature is set to true in my case, I did a
parser.getFeature("http://apache.org/xml/features/validation
I tried setting both "http://xml.org/sax/features/validation"; and
"http://apache.org/xml/features/validation/dynamic"; to true, but no
validation occurred.
The documentation for "http://apache.org/xml/features/validation/dynamic";
in http://xml.apache.org/xerces2-j/features states that
"Th
I'm trying to validate an XML document against a schema using the XML4J
3.2.1 DOMParser. When I set the "http://xml.org/sax/features/validation";
feature to true, the validation works well. But when I set the
"http://apache.org/xml/features/validation/dynamic"; to true (and leave the
normal valid
dy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
"Jeff Orris"
<[EMAIL PROTECTED] To:
[EMAIL PROTECTED]
cess.org>cc:
Subject: Sc
I receive the following error when I attempt to use the DOMParser in
XML4J-3_2_1 to create a Document from a schema file:
(Embedded image moved to file: pic22308.pcx)
Any ideas as to what is causing the error and how to resolve it?
Jeff
pic22308.pcx
Description: Binary data
-
11 matches
Mail list logo