Jump to content
Server Maintenance This Week. ×

xsl importing question


This topic is 5059 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi !

I have this xml-file

20100525

DJ2

inv_nr

20100525

trn_date

{27-05-2010}

sub_nr

242868

So... How do I get the of 242868 from the the tag when the 'sister'-tag when the value is 'sub_nr' ?

I can kind of do a brute force /AVXML/EBUSMSGSRQ/EBUSTRNRQ/ROWADDRQ/FIELD/NAME to get to that level , but how do I go to the sister from here ?

Maybe this is the wrong approach...

Any ideas ?

Link to comment
Share on other sites

ah.... right...

a record is enclosed by the tag

a record has one or more and those have multiple fields a field has a and a , but you could read that yourself I guess.

So what I am trying to do is select the tag where say the value is 'sub_nr' and then get the value of the tag of it's sibbling.

So I have allready refined my brute force attack in doing something like this :

first :

then the bit.

then :

then : for instance to get to the invoice-number (inv_nr)

this seams to work, but there should be a cleaner way. By matching the value of NAME to 'inv_nr' or something.

Anyway, any help is greatly appreaciated.

Link to comment
Share on other sites

This topic is 5059 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.