George:

If I understand your question, all you are trying to do is figure out how to 
get the value of the element attributes in an XML file you are receiving. If 
this is what you need to accomplish, the following is an example of a 
portion of an extract file that shows the format to do this.

For a normal element like
    <Money currency="USD">285.72</Money>
it would be
    <field_extraction field="DICTNAME1" path="Money/text()"/>

For an element with attributes like
     <OrderRequestHeader orderDate="2010-04-13T09:35:27-0400" 
orderID="EW244267" type="new">
it would be
    <field_extraction field="DICTNAME2" path="OrderRequestHeader/@orderID"/>
<field_extraction field="DICTNAME3" path="OrderRequestHeader/@orderDate"/>

Note the use of the @ symbol and the lack of /text() on the end of the line.

Hope that helps....

--------------------------------------------------------------
Carl Dula                       Voice: 973-227-8440 X111
Pulsar Systems, Inc.            Fax: 973-227-8440
271 Route 46 West, Suite H209   email:c...@pulsarsystems.com
Fairfield, NJ 07004-2474        http://www.pulsarsystems.com 


_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to