Hi,

You cannot parse something that is not a well-formed XML document with an 
XML parser, and you cannot process it with XSLT.  So, you can either fix 
the "document," or choose some other technology to process it, because 
it's not XML.

Dave





Nacho Conde <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
03/28/2005 11:46 PM
Please respond to xalan-c-users
 
        To:     [email protected]
        cc:     (bcc: David N Bertoni/Cambridge/IBM)
        Subject:        Re: problem parsing xml with namespaces...

Hi, and thanks for your reply, I know that the document is not a 
well-formed xml document, but I can�t fix the problem in the source, and 
I need  to parse this document, the question is that:
     could I parse the document with any parameter without the 
declaration of the namespaces, or should I  use another parser ( i use 
XalanSourceTreeParseLiaison)?

thanks

Nacho

[EMAIL PROTECTED] wrote:

>Hi,
>
>The file is not a well-formed XML document, because the prefix 'rdf ' is 
>not bound to a namespace URI.  I don't know what the source of this 
>document is, but you should fix the source to deliver well-formed 
>documents, or add the necessary namespace binding, if you created this 
>file yourself.
>
>This as nothing to do with validation, or whether or not the parser has 
>access to any URLs in the schema location hints.
>
>Dave
>
>
>
>
>
>Nacho Conde <[EMAIL PROTECTED]>
>Sent by: [EMAIL PROTECTED]
>03/28/2005 03:06 AM
>Please respond to xalan-c-users
> 
>        To:     [email protected]
>        cc:     (bcc: David N Bertoni/Cambridge/IBM)
>        Subject:        problem parsing xml with namespaces...
>
>Hi, i need parse xml files as this:
> 
><?xml version="1.0" encoding="UTF-8" standalone="no"?>
><rdf:RDF xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> 
>xsi:noNamespaceSchemaLocation="
>http://10.65.1.69:80/NASApp/wete/ServletUAProf?esquema=20041213062312.xsd
>">
>    <rdf:Description ID="88320000000">
>        <prf:component>
>            <rdf:Description ID="BrowserUA">
>                <prf:BrowserName/>
>                <prf:BrowserVersion/>
>            </rdf:Description>
>        </prf:component>
>     </rdf:Description>
></rdf:RDF>
>
>when i parse the document, the error is: "The prefix  'rdf' has not been 
>mapped to any URI"
>i configure de parse liaison whit, setUseValidation(false) and 
>setDoNamespaces(false),
>i not have access to the url , but i need parse the document,
>
>someone idea?
>
>Thanks
>
>
>
>
>
>__________ NOD32 1.1039 (20050328) Information __________
>
>This message was checked by NOD32 antivirus system.
>http://www.nod32.com
>
>
>
> 
>



Reply via email to