XML Parser in PB?

Just starting out? Need help? Post your questions and find answers here.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

XML Parser in PB?

Post by Karbon »

I was searching the forum(s) for information regarding an XML parser for PB and found several posts from someone claiming to have written one but no more information than that it exists.. Does anyone have any information on it?

Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
ebs
Enthusiast
Enthusiast
Posts: 562
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

It's not PB, but look at this message for a small XML parser (written in the other PB) and PureBasic wrapper functions.

viewtopic.php?t=5403

Eric
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Ahh! Very Nice!

Post by Karbon »

Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

or you may use this pbl file to use the dllimporter tool:
xmlparser.dll
xmlzParse 1
xmlzParseFile 1
xmlzFindNode 5
xmlNodeType 1
xmlzGetTag 1
xmlzGetChildTagData 1
xmlChild 1
xmlzChildData 1
xmlzFindChild 2
xmlzFindSpecificChild 4
xmlFindDataChild 1
xmlParent 1
xmlNextSibling 1
xmlzAttribValue 2
xmlzAttribExists 2
xmlAttribCount 1
xmlzAttribName 2
xmlzLastError 0
xmlzAddSimpleChild 3
xmlzAttribToString 1
xmlzBranchToString 2
xmlzClean 1
xmlzExtractSimpleChildData 2
xmlFindNodeRecursive 5
xmlzNodeToFile 2
xmlzNodeToString 2
xmlzSetAttrib 3
xmlTreeToFile 2
xmlAddChild 2
xmlzTreeToString 2
xmlzUnClean 1
xmlFreePointers 0
Post Reply