The call is simple: ReturnFirstElementInstance(strXMLText, strSearchElement)
Where strXMLText is the string containing the XML or HTML text and strSearchElement is a string containing the tag name (No < or >'s) to be searched for.
--------------------------------------------------------------------------
The second will get all the information from between all the tags with a specified name it encounters: (Seperated by the vbNewLine constant)
VB Code:
Private Function ReturnAllElementInstances(strDocument As String, strElement As String) As String
The call is simple: ReturnAllElementInstances(strXMLText, strSearchElement)
Where strXMLText is the string containing the XML or HTML text and strSearchElement is a string containing the tag name (No < or >'s) to be searched for.
--------------------------------------------------------------------------
The third will get all the information from a specific tag number (From a given name)
VB Code:
Private Function ReturnSpecificElementInstance(strDocument As String, strElement As String, intInstance As Integer) As String
The call is simple: ReturnSpecificElementInstance(strXMLText, strSearchElement, intTagNumber)
Where strXMLText is the string containing the XML or HTML text and strSearchElement is a string containing the tag name (No < or >'s) to be searched for. intTagNumber is the tag number to read.
OOPs, thats my mistake - I'm trying to convert that to Liberty BASIC also and thats causing my confision.
I will correct those
Code has been fixed, attatchment re-uploaded also
Also: Thanks for the Rep points Hack, its much appreciated
Cheers,
RyanJ
Why don't you edit your first post and replace the + signs with the & sign in case someone would prefer to simply copy 'n paste rather than download the sample code.
Why don't you edit your first post and replace the + signs with the & sign in case someone would prefer to simply copy 'n paste rather than download the sample code.
In both the ReturnAllElementInstances and ReturnAllElementInstances functions, there are two strings called strOpenElement and strCloseElement. I'm pretty certain that you aren't trying to mathmatically add two strings together.
In both the ReturnAllElementInstances and ReturnAllElementInstances functions, there are two strings called strOpenElement and strCloseElement. I'm pretty certain that you aren't trying to mathmatically add two strings together.
PS: Thanks.
OOPs, Missed that - Thanks Hack
I wonder why it did not pick that up as an error...