Bingo! That's splendid... Anyone who would like to see a nice P.Mapper application example can check this one out (all data comes from a PostGIS database on the same server). Armin, feel free to add it to the gallery if you like.
http://www.mapfeeder.net/rmb Thanks, Paul Wickman North Star Geographics pwick...@northstargeographics.com 612.280.5850 On Sep 3, 2009, at 2:48 AM, Armin Burger wrote: > Try to change in query/search.php line 50, from > > $this->xml = simplexml_load_file($xmlFN); > > to > > $this->xml = simplexml_load_file($xmlFN, NULL, LIBXML_NOENT); > > and see if it works better. If so I can add this to the release code. > I might as well include it for all other XML parsing functions. > > note: this requires PHP >=5.1.0 and Libxml >= 2.6.0 > > armin > > On Thu, Sep 3, 2009 at 12:06 AM, Paul > Wickman<pwick...@northstargeographics.com> wrote: >> I have a number of P.Mapper (4.0.beta1) applications that have nearly >> identical search.xml files. Each has a few <searchitem> definitions >> particular to the application as well as some <searchitem> >> definitions >> common to all the applications. Rather than continue duplicating the >> those things in common for each individual search.xml file, I was >> hoping to include the common entries with an ENTITY reference. >> >> Here is an example of the search.xml file I am trying to create: >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> <!DOCTYPE document [ >> <!ENTITY commonsearch SYSTEM "/home/nsg/pmapper/ >> pmapper-4.0.beta1/config/common/search.xml"> >> ]> >> <searchlist version="1.0"> >> >> <searchitem name="township_range" description="PLS: Township/Range/ >> SEction"> >> <layer type="postgis" name="sections"> >> <field type="n" name="town" description="Township" size="3" >> wildcard="1" /> >> <field type="n" name="rang" description="Range" size="2" >> wildcard="1" /> >> <field type="n" name="sect" description="Section" size="2" >> wildcard="1" /> >> </layer> >> </searchitem> >> >> &commonsearch; >> >> </searchlist> >> >> >> And here is an excerpt from the referenced file: >> >> >> <searchitem name="county" description="County"> >> <layer type="postgis" name="counties"> >> <field type="s" name="cty_name" description="County Name" >> wildcard="2"> >> <definition type="options" connectiontype="db" sort="asc" >> firstoption="-"> >> <dsn encoding="LATIN1">pgsql://guest1:f33dME! >> @localhost/minnesota</ >> dsn> >> <sql>SELECT DISTINCT cty_name,cty_name FROM >> boundary.jurisdiction_county_area ORDER by cty_name</sql> >> </definition> >> </field> >> </layer> >> </searchitem> >> >> >> >> None of the entries from the referenced file get included. Has >> anyone >> else tried doing something similar, or is this ability not supported? >> >> Thanks, >> >> Paul Wickman >> North Star Geographics >> pwick...@northstargeographics.com >> 612.280.5850 >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users