473,788 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PUG XML parser

anyone used the PUG XML parser?

http://trac.zeitherrschaft.org/zzub/...xml.h?rev=1561

Is it an easy XML parser to use?

any tutorial / sample code on how to use it?
Mar 14 '08 #1
3 3315
On Mar 14, 5:52*pm, Eric Kaplan <tobycraf...@ya hoo.comwrote:
anyone used the PUG XML parser?

http://trac.zeitherrschaft.org/zzub/...lugins/lunar/p...

Is it an easy XML parser to use?
definitely OT.

Austria C++ wraps the libxml2 parser.

here is the Austria C++ test case ...
http://austria.svn.sourceforge.net/v...pp?view=markup

This is how to parse memory:
http://austria.svn.sourceforge.net/v...w=markup#l_152

This is how to parse files:
http://austria.svn.sourceforge.net/v...w=markup#l_225

... and this is where it's used to set preferences.
http://austria.svn.sourceforge.net/v...pp?view=markup

There are other parsers as well. Apache has one, all based on Unicode
UTF-16 which is a pain.

libxml2 is used by lots o people so if it has bugs, it gets fixed
pretty quickly, shame they don't support a C++ api.

O' if you want to use Austria, use the subversion version.

Mar 14 '08 #2
On Thu, 13 Mar 2008 22:52:01 -0800, Eric Kaplan wrote:
>anyone used the PUG XML parser?
http://trac.zeitherrschaft.org/zzub/...xml.h?rev=1561
Is it an easy XML parser to use?
any tutorial / sample code on how to use it?
PugXML seems to be abandoned by the original author. A description can
be found here: http://www.codeproject.com/KB/cpp/pugxml.aspx . Some
users have produced versions with bugfixes as mentioned in the
comments to the above article (e.g.
http://www.getsoft.com/padinfo/pugxml.zip).
TinyXML is an alternative 'lightweight' XML parser.
--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch
Mar 14 '08 #3
What's the different between more popular XML parser like MSXML and
this less known PUGXML parser?

I heard PUGXML is more low level and run more faster?

On Fri, 14 Mar 2008 21:00:12 GMT, rp*****@yahoo.c om (Roland Pibinger)
wrote:
>On Thu, 13 Mar 2008 22:52:01 -0800, Eric Kaplan wrote:
>>anyone used the PUG XML parser?
http://trac.zeitherrschaft.org/zzub/...xml.h?rev=1561
Is it an easy XML parser to use?
any tutorial / sample code on how to use it?

PugXML seems to be abandoned by the original author. A description can
be found here: http://www.codeproject.com/KB/cpp/pugxml.aspx . Some
users have produced versions with bugfixes as mentioned in the
comments to the above article (e.g.
http://www.getsoft.com/padinfo/pugxml.zip).
TinyXML is an alternative 'lightweight' XML parser.
Mar 14 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
2298
by: Paulo Pinto | last post by:
Hi, does anyone know of a Python package that is able to load XML like the XML::Simple Perl package does? For those that don't know it, this package maps the XML file to a dictionary.
11
9617
by: Jean de Largentaye | last post by:
Hi, I need to parse a subset of C (a header file), and generate some unit tests for the functions listed in it. I thus need to parse the code, then rewrite function calls with wrong parameters. What I call "shaking the broken tree" :) I chose to make my UT-generator in Python 2.4. However, I am now encountering problems in choosing the right parser for the job. I struggle in choosing between the inappropriate, the out-of-date, the...
1
5286
by: Karalius, Joseph | last post by:
Can anyone explain what is happening here? I haven't found any useful info on Google yet. Thanks in advance. mmagnet:/home/jkaralius/src/zopeplone/Python-2.3.5 # make gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/python.o Modules/python.c gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o...
3
3125
by: Himanshu Garg | last post by:
Hello, I am trying to pinpoint an apparent bug in HTML::Parser. The encoding of the text seems to change incorrectly if the locale isn't set properly. However Parser.pm in the directory (/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/HTML/) doesn't seem to contain the "real" parsing statements.
2
3228
by: Joel Hedlund | last post by:
Hi! I have a possibly dumb question about imports. I've written two python modules: parser.py ------------------------------------ class Parser(object): "my parser" ------------------------------------
5
2338
by: thewarden | last post by:
I've come into a situation where I require to have BBCode parsed, this includes the standard tags supported by PEAR package HTML_BBCodeParser and custom BBCode tags I've added myself. My problem is this, I've discovered that when an value has a space within the value the value is truncated at the first occurrence of the space. This applies to a URL, image file names and any additional attribute values (alt, style, etc.). This issue is...
28
16423
by: Marc Gravell | last post by:
In Linq, you can apparently get a meaningful body from and expression's .ToString(); random question - does anybody know if linq also includes a parser? It just seemed it might be a handy way to write a safe but easy implementation (i.e. no codedom) for an IBindingListView.Filter (by compiling to a Predicate<T>). Anybody know if this is possible at all? Marc
0
2242
by: UncleRic | last post by:
Environment: Mac OS X (10.4.10) on MacBook Pro I'm a Perl Neophyte. I've downloaded the XML::Parser module and am attempting to install it in my working directory (referenced via PERL5LIB env): PERL5LIB=/Users/Ric/Library/Perl/ ls XML-Parser-2.34/ XML-Parser-2.34.tar
18
4729
by: Just Another Victim of the Ambient Morality | last post by:
Is pyparsing really a recursive descent parser? I ask this because there are grammars it can't parse that my recursive descent parser would parse, should I have written one. For instance: from pyparsing import * grammar = OneOrMore(Word(alphas)) + Literal('end') grammar.parseString('First Second Third end')
0
1358
by: arvindkgs | last post by:
Iam using c lexer that is flex generated and a c++ parser that is bison generated. i have modified the parser to acccept only string input. I am calling the parser function yyparse in a loop and reading line by line of user input. I stop the loop if the input is "quit". The problem i am facing is that when input does'nt match any rule then, the parser stops abruptly, and at next iteration starts off at same state, expecting the rule...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.