Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

XML filter in C++

  •  03-13-2008, 6:06 AM

    XML filter in C++

    Hello, firstly i need to know what are good available free libraries for regex in C++, specifically i am looking to have a filter on the XML document checking which of the elements contain any of the predetermined substrings ("Brauer", "Vogelheim", "Solaris"). So i am waiting for: "<meta:generator>StarOffice/8$Solaris_Sparc OpenOffice.org_project/680m5$Build-9114</meta:generator>", "<dc:creator>Michael Brauer</dc:creator>", and "<meta:printed-by>Daniel Vogelheim</meta:printed-by>" only from the following XML:

    <style type="text/css"> @page { margin: 2cm } P { margin-bottom: 0.21cm } --> </style> </p><pre class="western">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</pre><pre class="western">&lt;office:document-meta xmlns:office=&quot;urn:oasis:names:tc:opendocument:xmlns:office:1.0&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:meta=&quot;urn:oasis:names:tc:opendocument:xmlns:meta:1.0&quot; xmlns:ooo=&quot;http://openoffice.org/2004/office&quot; office:version=&quot;1.0&quot;&gt;
    &lt;office:meta&gt;
    &lt;meta:generator&gt;StarOffice/8$Solaris_Sparc OpenOffice.org_project/680m5$Build-9114
    &lt;/meta:generator&gt;
    &lt;dc:title&gt;OASIS Open Office Specification&lt;/dc:title&gt;
    &lt;meta:creation-date&gt;2003-02-05T12:39:40&lt;/meta:creation-date&gt;
    &lt;dc:creator&gt;Michael Brauer&lt;/dc:creator&gt;
    &lt;dc:date&gt;2007-02-02T17:00:27&lt;/dc:date&gt;
    &lt;meta:printed-by&gt;Daniel Vogelheim&lt;/meta:printed-by&gt;
    &lt;meta:print-date&gt;2004-09-17T15:13:31&lt;/meta:print-date&gt;
    &lt;meta:keyword&gt;OASIS&lt;/meta:keyword&gt;
    &lt;meta:keyword&gt;open&lt;/meta:keyword&gt;
    &lt;meta:keyword&gt;Office&lt;/meta:keyword&gt;
    &lt;dc:language&gt;en-US&lt;/dc:language&gt;
    &lt;meta:editing-cycles&gt;1436&lt;/meta:editing-cycles&gt;
    &lt;meta:editing-duration&gt;P50DT18H24M11S&lt;/meta:editing-duration&gt;
    &lt;meta:user-defined meta:name=&quot;VcsId&quot;&gt;$Id$&lt;/meta:user-defined&gt;
    &lt;meta:user-defined meta:name=&quot;Info 2&quot;/&gt;
    &lt;meta:user-defined meta:name=&quot;Info 3&quot;/&gt;
    &lt;meta:user-defined meta:name=&quot;Info 4&quot;/&gt;
    &lt;meta:document-statistic meta:table-count=&quot;35&quot; meta:image-count=&quot;20&quot; meta:object-count=&quot;0&quot; meta:page-count=&quot;738&quot; meta:paragraph-count=&quot;28413&quot; meta:word-count=&quot;182194&quot; meta:character-count=&quot;1228393&quot;/&gt;
    &lt;/office:meta&gt;
    &lt;/office:document-meta&gt;

     
    Filed under: ,
View Complete Thread