oc A

oc A

  • NA
  • 30
  • 0

Creating a dll for XML Operations

Aug 19 2010 3:26 AM
Hi All,

I want to create a dll in VB.NET. The functionality of the dll is that it should include all the xml operations. Any application that uses this dll will just pass the node that has to be selected. The dll will accept the node name and search for the node in the xml file and return the details of the node. For example:
if the xml file is like

<Node1>
       <Node2>
              <Node21 Attribute1 = "Value1" Attribute2 = "Value2" />
              <Node22 Attribute1 = "Value11" Attribute2 = "Value22" />
              <Node23 Attribute1 = "Value111" Attribute2 = "Value222" />
       </Node2>
       <Node3>
              <Node31 Attribute1 = "Value1" Attribute2 = "Value2" />
              <Node32 Attribute1 = "Value11" Attribute2 = "Value22" />
              <Node33 Attribute1 = "Value111" Attribute2 = "Value222" />
       </Node3>
</Node1>

If the application which uses the dll calls a function named readNode(Node3) which is defined in the dll, then the dll should be able to retrieve all the details of Node3 including subnodes and theire attribute values and return it to the calling application. All the XML operations are to be done in the dll. The calling application will just call the method in the dll by passing the node name and it should be able to get all the node or attribute values.

Can anybody please advice me the best way of doing this both memory wise and performance wise.

Any help will be highly appreciated.
Thanks in advance

:)



Answers (1)