Reading XML from a plugin (Mac OSX 10.4.10)

Hi gurus,
Basically, I want to read an XML file from within a plugin, without using the AIXMLxxxSuites. Sound simple? Answers on a postcard please, because I haven't managed it yet, and I'm running out of hair!
I've tried using libxml2, which works great... until you quit Illustrator, then it crashes and I can't stop it from doing so. I can only assume that something's being released when my plugin is unloaded which Illustrator's not expecting, causing a crash on exit, but I'm just guessing.
I've also tried eXpat, which was a complete nightmare to install but I got it working eventually. Only problem is that when you compile it with fink (or some other package manager) it compiles for your specific architecture, i386 in my case. This doesn't end well when you have over 500 mixed PPC/i386 Macs to target.
So anyone else got any ideas? I'm quite new to Mac development coming from a Windows dev background (where'd MSXML go?!) so please be gentle :)
Thanks in advance!
--W

I see no reason why you couldn't get libxml, eXpat or Xerces working, however with the provided information I see no way to offer advice.
I suspect it will take a debugger and a good look at your code to understand your situation, so I just offered a (simple) suggestion. I will add that you do get something by developing a home brewed solution, namely no limitations, cross platform capability, and complete understanding (hopefully).
I run a software company based on opensource software, so I routinely build and use the packages you mentioned (without Fink). I am afraid however, that providing assistance here is beyond the scope of this forum.
Best regards,
-jeshua

Similar Messages

  • How to make a image file from Pre installed Mac osx ? "PLEASE HELP :("?

    hey guys ..Thanks u for the time.
    So i have this eMac which has crashed and i have got may hands on another eMac.. and it works
    ... the only problem is.. I can take my eMac to the working eMac to do Target Mode or any thing...
    So Help me..
    My question is .. Is there a way to make a .DMG image file from pre installed mac osx OR
    Is there a way to may a recovery disc??

    You can use Carbon Copy Cloner to copy everything from the working eMac onto the non-working eMac while the working eMac is running. If your eMac will still do target mode into the working one, you can download the above software, select the booted drive as the source drive, and your eMac's drive as the target, however it is possible this will not work.
    When you say your eMac crashed, what exactly happened?  It is possible that the hard drive in your eMac failed or is failing, so in order to get it running again you would need to replace the hard drive.  On the eMac, this repair is somewhat involved, and you have to be very careful because it exposes the CRT, which has several areas which can be extremely dangerous to touch if not properly handled.  CRTs retain a great deal of voltage, even when unplugged, sometimes for weeks, and they can give you a nasty shock if you touch them in the wrong place.
    Also keep in mind that cloning from the working computer to the non-working computer will ERASE any data that you have stored on that eMac, so if you don't have it backed up anywhere, you may want to attempt that with target mode before proceeding.
    Good luck!

  • Read XML from a hardware sensor file into ODI

    Read XML from a hardware sensor file into ODI
    Hi,
    I am trying to extract xml data from a flowmeter that generates XML data.
    The xml file is found in http://ip_address/history.xml
    I’ve defined my Topology as such
    JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    JDBC URL: jdbc:snps:xml?f=http://192.168.0.202/history.xml&ro=true
    Please note to access the file I have to supply a username and password so I did in the definition But when testing my setup I get an error:
    ava.sql.SQLException: The DTD file "http://192.168.0.202/history.dtd" doesn't exist: Server redirected too many times (20)
    Please note I cannot write dtd to the device as it is a read only device.
    Has anyone came across such an issue, how can I achieve this.
    Thanks
    Hicham

    Hi David,
    Thanks for your reply.
    I've tried this jdbc url
    jdbc:snps:xml?f=http://192.168.0.202/history.xml&d=c:\temp\history.dtd
    but when I test the connection i get the following error
    java.sql.SQLException: While generating the DTD from the XML file, a java.io.IOException exception occurred saying: Server returned HTTP response code: 401 for URL: http://192.168.0.202/history.xml
    If I browse http://192.168.0.202/history.xml and i supply the username and password I get an xml page.
    I've supplied the username and password in the definition tab of the Data Server windows but still getting the above error.
    THanks
    Hicham

  • Photos from iPhoto in Mac OSX 10.4 onto iPad

    I currently own an iMac G4 running Mac OSX 10.4.11. I am aware that this OS is not supported by the Ipad. As a work around I am using iTunes on a Windows Laptop, using Homeshare to transfer all my music, Apps and videos onto the iPad. However, how do I transfer my pictures from Iphoto (keeping the photos in the same albums and projects as displayed in iPhoto) onto the iPad?
    Any help would be greatly appreciated.
    Thanks

    The Mac app PhoneView runs on 10.4.11, and will help you manage photos and other content with a connected iPad. It basically does what that Windows app does.

  • Read XML from applet

    Hi there,
    I would like to read XML data from Applet,
    first of all is it possible?
    If yes then how and will I require any extra pugin other than Java Plug-in?
    Thanks

    Sure you can, as long as the applet has permissions to read the xml file. If it is in the same directory as the applet it should be ok.
    There is no need for an extra plugin. Here's a starting point:
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(<some stream>);
    Element data = doc.getDocumentElement();
    NodeList dbChildren = db.getChildNodes();

  • HT1338 I have a canon pixma ip4300 ij printer connected to my mac G5 with an intel processor, i cannot print cd labels since i changed from the old mac OSX  processor.

    I have a canon pixma ip4300 ij printer with software to print cd/dvd labels ,i origonaly had it connected to a mac with the old MAC  OSX processor,since i have changed to a mac with MOUNTAIN LION the new intel processor i cannot print the cd labels, i have downloaded software update for the printer but it still reverts back to the old software , can anyone help  thank you   Allan R

    So do you have any problems using the iP4300 to print from other applications on 10.8? Just trying to get an idea of your current setup.
    I ask because Easy PhotoPrint (EPP) will use your existing printer - there is no need to create a new printer. So when you open the software and select to make a Disc Label, when you get to Step 4 -  Print Settings, the software looks at your existing printer setup to check that you have a printer that will support CD/DVD printing (not all models of Canon inkjet support this).
    So with regards to the problem connecting to the iP4300, is the software failing to locate a supporting printer? Can you give me a bit more info as to what is happening when you attempt to print a CD/DVD from EPP?

  • Moving iTunes from PC to Mac OSX possible?

    Hi,
    My friend has bought a new Mac with OSX 10.5 and wants me to move his iTunes from his PC to Mac, now I can get all the music copied over as I have set the network up and can browse to both computers. iTunes is installed on the Mac but empty, what is the next step? On the PC I usually just hold down the shift key and load it and tell iTunes where my music is.

    These pages may be of some help:
    How to move an iTunes library from a PC to Mac (and back)
    How to move your iTunes library from Windows to Mac
    Don't forget by the way if your friend has purchased any tracks from the iTunes Music Store to deauthorise his old PC if he's disposing of it so it doesn't use up one of his 5 allowances: About iTunes Music Store Authorisation and Deauthorisation

  • Adobe Reader 7.1 crashes on Mac OSX  with Read Out Loud

    I installed a Cepstral voice as the default on my Mac OSX 10.3.9. When I try to use the Adobe Reader "Read Out Loud" function, Adobe Reader 7.1 crashes. It didn't do this before installing the new voice. How can I fix this? THanks, Pam

    Remove the voice.
    Mike

  • From win to mac osx

    Hi, I am owner a box version of Photoshop CS3 and update CS5 for windows and I now I bought a Macbook pro. I would like to change a licence for Mac OSX, could you help me?

    You will need to upgrade CS5 which is eligible to upgrade to CS6  to switch platforms. You can only switch Platforms on current products levels. CS5 is not current.  $200 for standard $400 foe extended CS6.

  • I cannot get reader to install on my Mac OsX 10.7.5

    every time I try, it downloads the install file just fine, but when running it gets and error.
    Screenshot https://www.dropbox.com/s/4sk4yyd1zs3qpsr/2013-04-09_16-14-50.jpg
    Help???

    Solution : Install Adobe Reader XI from http://get.adobe.com/reader/otherversions/
    get the installer specific to Mac OS 10.7.2 - 10.7.5
    download this setup and use it for installation
    Thanks

  • Reading XML from Oracle directory to generate charts

    Hi,
    I have a requirement create graphs, charts and maps based on data from a data warehouse (dw).  As I see things, there are two possibilities:
    Graphs, charts and maps based on an XML file
    Graphs, charts and maps based on Oracle tables
    Both would contain small data sets that will allow for quick response.  The intent of these graphs, charts and maps is to generate a dashboard that would allow the user to quickly drill down to the desired warehouse data.
    The proof of concept has already been validated using the Oracle table scenario.  My question is whether or not this could be accomplished reading xml files for generating the same set of dashboard items?
    My Oracle database and APEX environments configuration are as follows:
    NLSRTL                 11.2.0.1.0                                                           Production
    Oracle Database 11g Enterprise Edition 11.2.0.1.0                         64bit Production
    PL/SQL 11.2.0.1.0                                                                            Production
    TNS for Solaris: 11.2.0.1.0                                                               Production
    Application Express 4.2.2.00.11
    APEX Listener Release 2.0.2.  / Tomcat
    An Oracle database directory has been setup and is accessible to our APEX application.
    Any suggestions/help is appreciated.
    Thanks,
    Charles

    An Oracle Directory has an underlying OS directory associated with it, Oracle just overlays it's control structure onto an existing folder in the OS. You can manipulate the files with stored procedures in Oracle or at the OS level from outside of Oracle.
    If you manipulate the files from the OS level, outside of Oracle, you may need a refresh of the Oracle Directory structure.

  • Write n then read xml from database to create graph in an applet

    Hi mates
    I have one problem I want show a trend(graph) from sql database which is having the records of about 8600 in a day. And i want to show a graph for a day
    but sometimes it gives a problem like out-of-memory, so can anyone tell me how i can get read of it.
    and other this can i use xml for this means first write a data in xml format from database then read it at sametime and show graph in applet
    can anytell me how to do it
    any suggesion is appreciable
    thanx

    Here's are two example for what you are looking for
    Re: Load xml data in Oracle table
    Re: insert .xml file into xmltype table?
    First you need to create a DIRECTORY object.  That is how Oracle works and it expects a DIRECTORY object instead of a physical path when performing operations that read/write from disk.  The directory path provided to the CREATE DIRECTORY command must be a directory that the machine Oracle DB resides on can see.
    Then you can go either of two routes.  You can INSERT that XML directly into a table, as shown in the second link I provided or you can read it into PL/SQL as the first link shows.  Then in either case, you can use SQL to parse the XML for you.
    Depending upon your needs, you may get better performance if you insert the XML into a table as the second link shows, assuming the XMLType column is stored as SECUREFILE BINARY XML.

  • How to read XML from web page inside servlet/jsp ?

    i have a url, which on sending request, shows XML in browser.
    Now i need to read this XML in browser and then manipulate it according to my need and display it on another page.
    actually the process is. :
    1) i have to first retrieve an xml from other site. (XML will only be shown in browser)
    2.)then i have to read the Xml and show it in according to my requirements.
    Is there any way to read XML directly from a Web Page ??
    is their logic to accomplish this.
    e.g in Servlet i can do somewhat like this :
    String wholeXml=Somemethod(url);
    Please Advice

    Hi,
    if u wanna extract data from XML. you can use Digester(Apache-jakarta) parser. All u need to create the beans(as per the data in xml), that will be populated by Digester.
    Digester takes xml(string) as parameter and populates the bean specified.
    U can use this bean in ur JSP.
    :::Note:::; use Digester in ur servlet.
    for more read:::
    http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html
    I hope it shall work..
    @mit

  • Read XML from remote server

    Not sure if this is even possible.
    I am using APEX on a INTERNAL server, on the same network is another server hosting files.
    Using PL/SQL code, I need to read the XML file.
    So APEX/ORACLE is at http:\\server1\apex\f?p........
    And the files are at \\server2\xml\file.xml
    Can I load the xml from server2 using pl/sql in server1?
    The XML is generated automatically from another system and can not be stored on the APEX server. It does not need to go into the database, just read, parced, and displayed.

    Hi,
    Using PL/SQL code, I need to read the XML file. You can create a directory object pointing to the location on server2 :
    CREATE DIRECTORY xml_dir AS '\\server2\xml';then you can access the XML content like this :
    DECLARE
    v_xml_doc xmltype;
    BEGIN
    v_xml_doc := xmltype(bfilename('XML_DIR', 'file.xml'), nls_charset_id('CHAR_CS'));
    -- XML processing here...
    END;
    /

  • Read xml from https

    Hi experts,
    I need to read a XML from https address,i have no idea to make it possible, any idea?
    points for all
    thanks all.

    Hi,
    It is secure link at XI end need to configure SSL else it is not possible.  We can read data through HTTP & SOAP adapter.
    Find below links for more help.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/c2953fc405330ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/964f67ec-0701-0010-bd88-f995abf4e1fc
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/23894238-0701-0010-40b0-a0a6d5c4ad9f?prtmode=navigate

Maybe you are looking for

  • Pages tear when scrolling

    I have been having odd things happen when scolling, only starting in the last week or so. When I scroll down the page, I get partway down and then the upper part stops scrolling and the lower part scrolls under it. The opposite thing happens if I scr

  • Whenever I try to share/export my video in Fcpx 10.0.8 I get message..

    share has failed. Quicktime error -50. Any idea why or how I can fix this?

  • Are schools required to use the Volume Purchase Program?

    Hello, I am involved in providing a brand new school with iPads for students. The volume purchasing program lets businesses and schools download apps in bulk. However, one must pay for every app for every app one each device (even with bulk discount)

  • Albums in year of order

    How can i get my albums to show up in order of year instead of alphabetically?

  • Macmail wont send on new macbook pro with Mavericks

    I have 4 email accounts, one wont send. It keeps showing a SMTP connection error. The settings are correct, other people in the office can send. It worked for about 1 minute this morning then went off line. I have tried turning off SSL and also Use o