Skip to main content
Solved

XMLXQueryExtractor extract Attribute


jkr_wrk
Influencer
Forum|alt.badge.img+29

I have the following XML:

<?xml version="1.0" encoding="UTF-8"?>
<MyProblem>
	<Maat Name="MyName1" Description="LetsDoIt">
		<Status_Maat Value="Open"/>
	</Maat>
	<Maat Name="MyName2">
		<Status_Maat Value="Open"/>
	</Maat>
	<Procon Description="FinalCheck"/>
	<Precon Description="StopAndCheck"/>
	<Maat Name="MyName3" Description="LetsDoNothing">
		<Status_Maat Value="Open"/>
	</Maat>
</MyProblem>

I can extract the Maat with XMLXQueryExtrator by the following expression:

/MyProblem/Maat

 

Notepad++ XMLTools says the path to the Description is 

/MyProblem/Maat/@Description 

but this gives an error. And no results.

 

What am I doing wrong?

Best answer by ebygomm

Try

/MyProblem/Maat/@Description/string()

 

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • April 4, 2023

Try

/MyProblem/Maat/@Description/string()

 


jkr_wrk
Influencer
Forum|alt.badge.img+29
  • Author
  • April 4, 2023

Thanks, that worked.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings