Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: Reading multiple record formats from an xml file

$
0
0

Hi Alice,

 

This is close.  But there's a problem when one of the elements specified in the XPath expression doesn't occur in the data.  For example, if there is an expression that looks like:

 

<Address>

<Id>3676</Id>

<City>Anytown</City>

<State>XX</State>

<ZIP>00000</ZIP>

</Address>

 

(e.g. no <Street> value), then the adapter will skip that element.  I need the adapter to generate the row in the stream but have the Street column be null or empty.

 

The actual file I want to use doesn't include tags for empty values, so if I create a schema that has all the values, I doubt that it will ever read in a single row.

 

Is there anyway to get that to work?

 

Thanks.

 

Dan


Viewing all articles
Browse latest Browse all 3019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>