Hi,
I have some trouble
to parse some HL7 XML messages which are using a namespace prefix
for every
HL7 element.
The XML document I
receive is valid, but the DefaultXMLParser doesn't handle at all the namespaces,
and thus doesn't map the HL7 XML elements to the corresponding HAPI
objects.
I looked at the
source code, and saw that DefaultXMLParser uses the getNodeName() method on the
nodes to find the corresponding class name, while getNodeName() returns the
fully qualified name of the node (ie including the namespace prefix). The
getLocalName() method only return the name of the node, not the prefix. Is there
a reason to use the getNodeName() method instead of getLocalName(), or is this
just a mistake ?
For the moment I
remove the namespace prefix of each node before parsing the XML file, but if you
have a better idea to handle this properly, I would be glad
!
Thanks,
Loïc
Courvoisier
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel