[Glass] XML Parser: XML prefix

BrunoBB smalltalk at adinet.com.uy
Fri Nov 22 11:19:48 PST 2013


Hi,

There is an XML which has the following nodes:
...<resource xml:lang="es"> ...<title xml:lang="es">...<description
xml:lang="es"/>

When i try to parse this file the following error arise:

a XMLNamespaceException occurred (error 2710), Unmapped namespace prefix
"xml"
XMLNamespaceScope>>validatePrefix:

Any idea is welcome ...

How to define a prefix for "xml:" ? (mapPrefix:to:) but this should be
automatic ?

Regards,
Bruno

PS: original message:
XMLDOMParser parseDocumentFrom: (FileStream fileNamed: 'myFile.xml').



--
View this message in context: http://forum.world.st/XML-Parser-XML-prefix-tp4724394.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list