DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26157>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26157

writeToURI and write methods don't handle file: URIs

           Summary: writeToURI and write methods don't handle file: URIs
           Product: Xerces2-J
           Version: 2.6.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Serialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The writeToURI(Node, String) and write(Node, LSOutput) methods on
DOMSerializerImpl don't appear to handle file: URIs at all. With the latest
version from CVS, whenever I try to serialize a document to a file: URI, the
serializer barfs saying that it can't find the file in question. The problem is
at lines 692 and 827 in DOMSerializerImpl, where it attempts to construct a
java.io.File object with the String representation of the URI to be used.
Unfortunately, the java.io.File constructor that takes a String takes a *path*
not a URI. So attempting to write to file:///home/lefh/foo.xml fails because
this is not a valid filesystem path.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to