Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BLS, extract parts of an XML

Hi.

I may have asked before, but can not find the answer anywhere. I have an XML which I want to extract parts of. It this possible an how?

I want to get the part

/ns1:GetProductionSchedule

/ns2:GetProductionSchedule

/ns2:DataArea

/ns3:ProductionSchedule

and everything below it....

The XML is as follows.

<?xml version="1.0" encoding="UTF-8"?>

<GetProductionSchedule xmlns="http://Wonderware.WWEI.Services">

<GetProductionSchedule xmlns="http://www.wonderware.com/wwei/v0201/schemas">

<ApplicationArea>

<Sender>

<LogicalID/>

<ComponentID/>

<TaskID/>

<ReferenceID/>

<ConfirmationCode/>

<AuthorizationID/>

</Sender>

<CreationDateTime/>

<BODID/>

<UserArea/>

</ApplicationArea>

<DataArea>

<ProductionSchedule xmlns="http://www.wbf.org/xml/b2mml-v02">

<ID>000003176585</ID>

<Description/>

<Location>

<EquipmentID/>

<EquipmentElementLevel OtherValue=""/>

<Location>

<EquipmentID/>

<Any/>

</Location>

<Any/>

</Location>

<PublishedDate/>

<StartTime/>

<EndTime/>

<EquipmentElementLevel OtherValue=""/>

<Any/>

</ProductionSchedule>

</DataArea>

</GetProductionSchedule>

</GetProductionSchedule>

Former Member
Former Member replied

Hi Poul,

what do you exactly want to do by extracting?

For example, you can copy the node /GetProductionSchedule/GetProductionSchedule/DataArea/ProductionSchedule into a XML local variable by just using the link type "assign xml" (it will automatically be used when you drag the node "ProductionSchedule" and drop it on the variable.

Is that what you need?

Michael

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question