Hello Sandeep,
It is very well to use Script Task instead of XML Task as it can provide dynamic behavior to your XML parsing. Thanks for sharing this information.
I am facing problem in complex XML file. My each XML node is having many sub children and on their attribute condition i want to proceed. But I am unable to find how to proceed on conditions.
E.g:
'Table Fact = "Y">
<Name>Company</Name>
<Fields>
<Field HasChild = "N">
<Name>Name</Name>
<Size>100</Size>
<Type>Text</Type>
</Field>
<Field HasChild = "Y">
<Name>Account Manager</Name>
<Size>8</Size>
<Type>Binary</Type>
<ChildTable>Employee</ChildTable>
</Field>
<Fields>
/Table>`
Now i want to parse on condition when attribute HasChild is "Y" then select all its Child nodes. Number of Child nodes can be varied. This Same condition follows for attribute Fact also. When it is "Y" then dynamic parsing.
So can you just help me out with this problem.
commented on Jan 25 2012 12:20AM