Home > Ask the Oracle Experts > (Archive) App Dev: PL/SQL and XML Questions & Answers > Developing a parser for recognizing HTML tags
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Developing a parser for recognizing HTML tags

Lewis Cunningham EXPERT RESPONSE FROM: Lewis Cunningham

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 11 November 2005
In my current project, I need to develop a parser for my language. It is actually not a language, but I am working on a project for which I have my own HTML tags and all my work will be based on those tags. Now, I need to find out if it is possible to generate a parser, which, when given a segment of code involving my tags, should recognize different tags in my language.

>
EXPERT RESPONSE
You say that you want to parse your own HTML tags. Are they HTML tags or tags you made up? Anyway, it doesn't really make a difference. You don't need to develop a parser. Grab any XML parser and feed it your tags. If you are using HTML or tags you invent yourself, you just need to make sure you follow the rules of XML.

In case you aren't familiar with XML, XML is the eXtensible Markup Language. The entire reason for being for XML is to allow you to create a set of tags that will be recognized by a parser. Go to http://www.w3.org/XML/ for the definitive Web site on XML.

HTML is the HyperText Markup Language. xHTML is a version of HTML that conforms to the XML language requirements. HTML/xHTML are just a predefined set of tags. For more about the specifics of HTML/xHTML look here.

Now for some discussion directly relating to your question. XML is not a set of tags like HTML. XML allows you to define tags as needed by your application. The nicest thing about XML is that it allows you to do exactly what you're asking about.

You can define your own tags, or use HTML tags, and process them with a parser of your choice. A conforming XML parser already has the rules of XML built into it. There is no reason to write your own. I use the Oracle parser available at the Oracle Technology Web site.

There is also a free parser from Microsoft, MSXML.

You can also Google "XML PARSER" and get tons of hits.

I hope that answers your question. If you have any more, post away!


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
(Archive) App Dev: PL/SQL and XML
Detect if a column is NUMBER or VARCHAR2 in PL/SQL
Loading data into Oracle
Log execution time for a procedure
Hiding objects in a schema
Query for five most recent dates
Connecting with Visual Basic
SQL ANSI standards and compliance
Oracle and SOAP
Concatenating XML fragments
Two schemas on a single database

Oracle XML, SOA, Web services
Oracle XML DB generates power for electrical agency
Oracle updates Microsoft developer tools
Oracle vs. SAP: The SOA factor
Oracle's content management software plan takes shape
Top five data management buzzwords
Oracle updates free Web development tool
Podcast: Oracle vs. SAP -- SOA and Web services security
Oracle open sources TopLink at EclipseCon
Oracle or SQL Server for developing social networking site?
Oracle Database 11g to feature XML enhancements

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
DSML  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts