Author: mrglavas
Date: Sat Nov 22 09:34:30 2008
New Revision: 719878
URL: http://svn.apache.org/viewvc?rev=719878&view=rev
Log:
Fixing a bug. The Location must be set on the StAXLocationWrapper
before calling startDocument() otherwise the document URI on the
Schema DOM will not be set.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java?rev=719878&r1=719877&r2=719878&view=diff
==============================================================================
---
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java
(original)
+++
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java
Sat Nov 22 09:34:30 2008
@@ -107,6 +107,7 @@
eventType != XMLStreamConstants.START_ELEMENT) {
throw new XMLStreamException();
}
+ fLocationWrapper.setLocation(currentEvent.getLocation());
fSchemaDOMParser.startDocument(fLocationWrapper, null,
fNamespaceContext, null);
loop: while (input.hasNext()) {
currentEvent = input.nextEvent();
@@ -183,6 +184,7 @@
eventType != XMLStreamConstants.START_ELEMENT) {
throw new XMLStreamException();
}
+ fLocationWrapper.setLocation(input.getLocation());
fSchemaDOMParser.startDocument(fLocationWrapper, null,
fNamespaceContext, null);
boolean first = true;
loop: while (input.hasNext()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]