XML xsi types with the XML Path Reader

Hi,

Are XSI types supported within the XML Path Reader?

Thanks

Mike

Hi, namespaces are supported by the XML Path Reader.

An examaple:

test data

Thanks for your answer.

I am having problems getting this example to work.

I am using…

Person\_0

with…

But get the following error …

Reason: net.sf.saxon.trans.StaticError: XPath syntax error at char 15 in {Party/@xsi:type=Person}:
Prefix xsi has not been declared
XML_XPATH_READER0 …FAILED !

Any ideas what I am doing wrong. Thanks for your help.

Sorry had a moment there.

Notice I havent specified the namespaces.

Hi,

I am still seem to be having a few problems getting this to work.

Can you spot anything I am doing wrong?

Person\_0

Thanks for your help.

Hi,

This mapping will work…

with this xml…

Person\_2

but when I use this…

with this xml…

Person\_0

It doesnt seem to work with the xsi type.

Any ideas?

Try this:

Two points:

  1. The context may not return true/false. But it would be nice feature…
  2. Key sensitive is important for ‘http://mike.com/services/1.0/

Thanks. That last one worked.

Thanks for your help.

M