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

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

×