Jump to content
winkimjr2

How do I output the first FamilyJudgement from xml doc?

Recommended Posts

I would like to output the first FamilyJudgement from my xml document. How do I do it?
Expected output
<FamilyJudgment judgmentKey="3928551">
<JudgmentEventTypeText>Custody order</JudgmentEventTypeText>
</FamilyJudgment>
xml document
<?xml version="1.0" encoding="UTF-8"?>
<CaseNotification>
<CourtDecisionNotification>
<TriggeredDateTime>2016-07-12T15:05:45-05:00</TriggeredDateTime>
<NotificationEvent>CourtDecisionModified</NotificationEvent>
<FamilyJudgment judgmentKey="3928551">
<JudgmentEventTypeText>Custody order</JudgmentEventTypeText>
<JudgmentEventDate>2016-07-12</JudgmentEventDate>
<Custody>
<CustodyDescriptionText>Legal custody</CustodyDescriptionText>
</Custody>
</FamilyJudgment>
<FamilyJudgment judgmentKey="3928551">
<JudgmentEventTypeText>Custody order</JudgmentEventTypeText>
<JudgmentEventDate>2016-07-12</JudgmentEventDate>
<Custody>
<CustodyDescriptionText>Legal custody</CustodyDescriptionText>
</Custody>
</FamilyJudgment>
</CourtDecisionNotification>
</CaseNotification>

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...