hello.
 
here's what i did to obtain the tag from a xml file with javascript :
 
function getElemens(file)
{
         getURL (file, getElementsAsync);//first parameter the file, second parameter 
the 
                                                         //name of a function
}
function getElementsAsync(data)
{
     if(data.success)
     {
                var documentFragment = parseXML(data.content,svgDoc)//svgDoc is the  
                                       //root element of your svg file
                children = documentFragment.getChildNodes();
                 nombre=childs.getLength();
                for (i=0;i<nombre;i++)
                 {
                              child=childs.item(i);
                              node.appendChild (child);
                  }  
     }
     else alert("Error reading file");
}
 
Hope you'll find it usefull. You can find more documentation at batik.org

skrellkolja <[EMAIL PROTECTED]> wrote:
thx, but nope.

I'm getting the same error.

SkrellK



--- In [EMAIL PROTECTED], Holger Will <[EMAIL PROTECTED]> 
wrote:
> Hi SkrellK
> try :
> 
> var XMLTree = new ActiveXObject("msxml2.DOMDocument");
> 
> that might help !
> 
> Holger
> 
> 
> 
> 
> 
> skrellkolja wrote:
> 
> > I have a file.js javascript file which i use for manipulating 
SVG. as
> > a source for the manipulation i have an XML tree in dataBase.xml. 
i'm
> > going to browse this tree using xpath. but i keep getting the
> > error: "ActiveXObject is undefined". The line on which the error
> > occurs looks like this:
> >
> > var XMLTree = new ActiveXObject("Microsoft.XMLDOM");
> >
> > pliiiiiiiiiiis help! :)
> >
> >
> > SkrellK
> >
> >
> >
> > -----
> > To unsubscribe send a message to: 
> > [EMAIL PROTECTED]
> > -or-
> > visit http://groups.yahoo.com/group/svg-developers and 
click "edit my 
> > membership"
> > ----
> >
> >
> > *Yahoo! Groups Sponsor*
> > ADVERTISEMENT
> > click here 
> > 
<http://us.ard.yahoo.com/SIG=129uf0bat/M=295196.4901138.6071305.300117
6/D=groups/S=1706030389:HM/EXP=1095157351/A=2128215/R=0/SIG=10se96mf6/
*http://companion.yahoo.com> 
> >
> >
> >
> > ------------------------------------------------------------------
------
> > *Yahoo! Groups Links*
> >
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/svg-developers/
> >        
> >     * To unsubscribe from this group, send an email to:
> >       [EMAIL PROTECTED]
> >       <mailto:[EMAIL PROTECTED]
subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
---- 


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


                
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to