XSLT inside XElement? RRS feed

  • Question

  • User-851967432 posted

    Hi All,

    I can't seem to wrap my head around this and am hoping you can help.

    I have an XElement and I need to implement an XLST inside one of the nodes from an array as follows:

    Dim Errors() as string
    Dim myXML as XElement = <Parent><Errors>Need to loop through above array and add a new row for each item here</Errors></Parent>

    Any help appreciated.


    Thursday, July 24, 2014 5:52 PM


  • User1918509225 posted

    Hi adamturner34,

    Based on my understanding ,It seems that you want to validate your xml via XSLT, you can try the following steps:

    Step 1: Define XML
    Step 2: Define XSL as per our business rules defined above
    Step 3: Define function which will be called from XSL
    Step 4: Implement code validate XML with XSL as follows which will be called from XSL.

    Here is a sample which you can refer to link below:


    Best Regards,

    Kevin Shen.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 27, 2014 10:01 PM