Thursday, March 28, 2013

Re: Need some help with Totoe and XML

I'n not sure I understand what your trying to do, but before I put an XPath in code, I often try it out wit XPE (http://sourceforge.net/projects/xpe/). I've found this a great tool for exploring option and getting it right before try it out in my program.

On Wednesday, March 27, 2013 11:01:14 AM UTC-4, skippy wrote:
I have this XML:
I need to get at Group Name="ACCT00305" and at all the children and
values like this:
ACCT000           31MEB0009
NAME055          Miss Taylor R Williams
REMT000         00001
REMT001         BANTMEK

<Data>
<Group Name="ACCT00305">
        <ITEM>
                <ACCT000 >31MEB0009</ACCT000 >
                <NAME055 >Miss Taylor R Williams</NAME055 >
                <REMT000 >00001</REMT000 >
                <REMT001 >BANTMEK</REMT001 >
                <NAME002 >987-00-0082</NAME002 >
                <REMT027 >
                        <vlst>
                                <vitm code=' ' desc='NONE' />
                        </vlst>
                </REMT027 >
                <REMT018 >
                        <vlst>
                                <vitm code=' ' desc='NONE' />
                        </vlst>
                </REMT018 >
        </ITEM>
        <ITEM>
                <ACCT000 >31MEB0009</ACCT000 >
                <NAME055 >Mr. Taylor R Brown</NAME055 >
                <REMT000 >00002</REMT000 >
                <REMT001 >GIP5</REMT001 >
                <NAME002 > </NAME002 >
                <REMT027 >
                        <vlst>
                                <vitm code=' ' desc='NONE' />
                        </vlst>
                </REMT027 >
                <REMT018 >
                        <vlst>
                                <vitm code=' ' desc='NONE' />
                        </vlst>
                </REMT018 >
        </ITEM>
        <ITEM>
                <ACCT000 >31MEB0009</ACCT000 >
                <NAME055 >Mrs. Jamie N Walker</NAME055 >
                <REMT000 >00005</REMT000 >
                <REMT001 >BROWTJK</REMT001 >
                <NAME002 > </NAME002 >
                <REMT027 >
                        <vlst>
                                <vitm code=' ' desc='NONE' />
                        </vlst>
                </REMT027 >
                <REMT018 >
                        <vlst>
                                <vitm code=' ' desc='NONE' />
                        </vlst>
                </REMT018 >
        </ITEM>
        <ITEM>
                <ACCT000 >31MEB0009</ACCT000 >
                <NAME055 >Miss Pat G Wilson</NAME055 >
                <REMT000 >00010</REMT000 >
                <REMT001 >TAYLOAK</REMT001 >
                <NAME002 > </NAME002 >
                <REMT027 >TA<vlst>
                <vitm code='TA' desc='Receive Tax Letters' />
        </vlst>
</REMT027 >
<REMT018 >
        <vlst>
                <vitm code=' ' desc='NONE' />
        </vlst>
</REMT018 >
</ITEM>
</Group>
</Data>

Alan B. Lehman
IT Architect Specialist
FIS Wealth Management Solutions
Phone: 414-815-2049

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment