This is not the place to look at this. You should look around for php xml
tutorials.

2008/10/28 isusko <[EMAIL PROTECTED]>

> *This the XML archive that i upload to server:
> <?xml version="1.0" encoding="UTF-8" ?>
> <markers></markers>
>
> But when you go to
>
>  www.ros-asociados.com/ejemplo-jesus/markers.xml
>
>
> it appears like this:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <markers />
> *
>
>
> El 28/10/2008, a las 14:02, [EMAIL PROTECTED] escribió:
>
>
> On Oct 28, 5:57 am, isusko <[EMAIL PROTECTED]> wrote:
>
> yes, sorry, i´m desesperated
>
> Look the example pleasewww.ros-asociados.com/ejemplo-jesus/
> maps_form.php
>
>
> http://www.ros-asociados.com/ejemplo-jesus/maps_form.php
>
>
> It must be reading the markers of  "markers.xml".
> The page uses jQuery "jquery-1.2.6.min.js
>
> All is publicated in this url:
> www.ros-asociados.com/ejemplo-jesus/maps_form.php
>
>
> http://www.ros-asociados.com/ejemplo-jesus/markers.xml
>
> Is empty.  There are no markers defined in it.  Get that working
> first...
>
>   --- Larry
>
> www.ros-asociados.com/ejemplo-jesus/jquery-1.2.6.min.js
>
>
> The map is loading good, bur whe you click on  SAVE .... all is
> broken, Please look by yourself
>
> $xml = new SimpleXMLElement($fh);
>
> The header of the web
> <?php
>
> if(isset($_POST['submit'])) {
>      $fh = file_get_contents('markers.xml');
>
>      try {
>          $xml = new SimpleXMLElement($fh);
>      } catch (Exception $e) {
>          echo $e->getMessage();
>      }
>
>      $marker = $xml->addChild('marker');
>      $marker->addAttribute('lat', $_POST['lat']);
>      $marker->addAttribute('lng', $_POST['lng']);
>      $marker->addAttribute('msg', utf8_encode($_POST['msg']));
>      $marker->addAttribute('name', utf8_encode($_POST['name']));
>      $marker->addAttribute('link', utf8_encode($_POST['link']));
>
>      $fp = fopen('markers.xml','w');
>      fwrite($fp, $xml->saveXML());
>      fclose($fp);
>      header('Location:maps_form.php');
>
> }
>
> ?>
>
> El 28/10/2008, a las 13:51, Björn Brala escribió:
>
> I think the awnser is 42.
>
>
> On a more serious note, read the posting guide lines, its hard to
> awnser anything without any information.
>
>
> 2008/10/28 iSus <[EMAIL PROTECTED]>
>
>
> String could not be parsed as XML
> Fatal error: Call to a member function addChild() on a non-object in /
> expert/htwebs/www1/ftprosas/www.ros-asociados.com/ejemplo-jesus/
> maps_form.php on line 12
>
>
> Anyone can help me please?????
>
>
> --
> Bjorn Brala
> ----------------
> GeoStart.nl- Google maps - Swis Webdesign
>
>
>
>
> >
>


-- 
Bjorn Brala
----------------
GeoStart.nl- Google maps - Swis Webdesign

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to