XML from a file path

Hello

I'm trying to create an XML OBJECT from a stream, but I can't do .

Someone knows a way to create an XML object from a file path (xml)?

PS: I'm trying to create a TABLE with the information contained in an XML file.

Please,

I really need help!

Hello

You need read this disk file from a stream.

std::string inStr = "C:\yourPath.xml."

InterfacePtr m_stream (StreamUtil::CreatePointerStreamRead (const_cast(inStr.c_str ()), inStr.size ()));

Then you PASE this flow

I use the DOM parser

InterfacePtr serviceRegistry (gSession, UseDefaultIID());
InterfacePtr xmlDOMProvider (serviceRegistry-> QueryServiceProviderByClassID (kDOMParserService, kDOMParserServiceBoss));
InterfacePtr domServices (xmlDOMProvider, UseDefaultIID());
   
IIDXMLDOMDocument * m_root = domServices-> Parse (m_stream);
m_Stream-> Close();

And then, for each node create a table cell.

Maybe there is an easier way to do it. Perhaps using some import filter.

Concerning

Bartek

Tags: InDesign

Similar Questions

  • How to get the XML from one application to another?

    Hi guys,.

    1)

    I installed 2 separate applications such as application1 and application2.  am, creating the file 'appln.xml' in the application1. I need to get this "appln.xml" of application2.

    2)

    I need to know where the "appln.xml" is stored (file path)?

    Thanks in advance,

    Thank you very much Mantaker. I will try.

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • read data from utl file in xml format

    I need like this...


    UTL file (on server) I'll have 10 records in xml format, the file is located in the xml extension.

    now I want to read all 10 records in the server using the UTL files
    and I want to extract the values of labels.

    links or solutions?

    Why utl?

    Why not use bfilename?
    sample-
    Re: How to insert rows from an xml file in a table
    Re: Tags XML in the top or bottom of case?

  • XML: loading from a file vs using AS

    The code below fails to load the mxl, but if I put the XML in a file and use
    < mx:XML id = "tempXML" source = "cuePoints.xml" / > "
    It loads. What must I do to make the XML to load from the inside of the mxml file?

    NO, DO NOT USE THE TEMPLATE TAG! which converts your beautiful XML in a hideous tree of dynamic objects. Don't, don't.

    Your problem is simply that you forgot to call the init() function. Call it since the event creationComplete on the Application tag and you will be fine.

    Tracy

  • Connect multiple files / different file path

    I need to be reprinted several files from an imported XML, they live in a different file path when the XML was created. I select several files and choose repeat the link. I repeat the first file I was waiting for the rest of them be reprinted automatically, but that was not the case even if I "recreate a link to other automatically" selected.  What I am doing wrong? can I change the path to global for all the clips so I can't connect one at a time?

    recreate one link to others can automatically only to find files in a folder/location at a time. so according to the number of files you have to different media, you can a few extra steps.  There are some types of media with subfolders, re-edit the link cannot just pick up. they need by selecting each item one by one, although adobe says that these are the supported formats, questions like these are always present.

    According to the layout structure and the file used in the XML, an alternative, you can try would be to modify the XML. make a copy and use a program such as notepad ++ and replace his command. You can tell him what to find (former location of folder) and what he must be replaced by (the new location of the folder) and have it change all these at the same time. you could even have it changes just part of the path to the location of the folder if you have the same files as the original xml, but only in a different location.  I did not myself, but should work.

  • Read xml in table file

    I would like to read an xml file in a table before placing it in a document. I've seen people here do something similar, but I can't work.

    Right now I'm having to open the document as a file read into an array and then pull what I want with a regex expression, which is quite painful.

    It seems that the framework has some rather nice xml element functions if I could just read the file in xml format

    For the moment, I do something like that to read the file

    MyFile = new file (path to file);

    MyFile.Open ("r");

    myothervariable = myfile.read ();

    MyFile.Close ();

    But I just read it as simple text. I can't use xml or functions on all properties. Does make sense?

    Thanks in advance for any help

    Follow these steps:

    MyFile = new file (path to file);

    MyFile.Open ("r");

    myXML = new XML (myfile.read ());

    MyFile.Close ();

    You now have an XML object that you can analyze with JavaScript. See the Guide to the JavaScript tools from the ESTK (in the Help menu on the ESTK), "Integration XML in JavaScript" chapter (ch. 9 in CS5).

    Peter

  • Process xml from oracle database

    Hello

    I have an XML file that:

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    < table xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    < Budgets30 >
    < id > < /ID > 83201
    < gm1 > 20575.2 < / gm1 >
    < gm2 > 20761.2 < / gm2 >
    < gm3 > 41583.6 < / gm3 >
    < > 46896 gm4 < / gm4 >
    < gs1 > 51438 < / gs1 >
    < > 51903 gs2 < / gs2 >
    < > 103959 gs3 < / gs3 >
    < gs4 > 117240 < / gs4 >
    < / Budgets30 >
    < Budgets30 >
    < id > < /ID > 83202
    < > 81000 gm1 < / gm1 >
    < gm2 > 0 < / gm2 >
    < > 16200 gm3 < / gm3 >
    < gm4 > 0 < / gm4 >
    < gs1 > 202500 < / gs1 >
    < gs2 > 0 < / gs2 >
    < > 40500 gs3 < / gs3 >
    < gs4 > 0 < / gs4 >
    < / Budgets30 >

    There are approximately 4000 lines. Following code does not work because of ' ORA-19011: character string buffer too small "."

    Insert into xxpm_sr_cost_prices_xml values (xmltype (dbms_xslprocessor.read2clob (lv_file_dir, lv_file_name)));
    --
    l_location: = ' select / Extract to inhabitants. "
    SELECT scp.content.extract('//Id').getStringVal () got Id
    scp.content.extract('//gm1').getStringVal () as gm1
    scp.content.extract('//gm2').getStringVal () as gm2
    scp.content.extract('//gm3').getStringVal () as gm3
    scp.content.extract('//gm4').getStringVal () as gm4
    scp.content.extract('//gs1').getStringVal () as gs1
    scp.content.extract('//gs2').getStringVal () like the gs2
    scp.content.extract('//gs3').getStringVal () as gs3
    scp.content.extract('//gs4').getStringVal () as gs4
    IN l_id, l_gm1, l_gm2, l_gm3, l_gm4, l_gs1, l_gs2, l_gs3, l_gs4
    OF xxpm_sr_cost_prices_xml scp

    What does not work?

    Robbert cordially

    And I guess that the default namespace that you use in the XMLTABLE is also in the XML file?

    So, if I change the example to work with your query data...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select xmltype('
      2  
      3    
      4      
      5        83201
      6        20575.2
      7        20761.2
      8        41583.6
      9        46896
     10        51438
     11        51903
     12        103959
     13        117240
     14      
     15      
     16        83202
     17        81000
     18        0
     19        16200
     20        0
     21        202500
     22        0
     23        40500
     24        0
     25      
     26    
     27  ') as xml from dual)
     28  --
     29  -- END OF TEST DATA
     30  --
     31  SELECT x.*
     32  FROM t, XMLTable(
     33  XMLNamespaces(default 'http://developer.cognos.com/schemas/xmldata/1/'),
     34  '/dataset/data/row'
     35  passing t.xml
     36  columns Id number path '//Id'
     37  ,gm1 number path '//gm1'
     38  ,gm2 number path '//gm2'
     39  ,gm3 number path '//gm3'
     40  ,gm4 number path '//gm4'
     41  ,gs1 number path '//gs1'
     42  ,gs2 number path '//gs2'
     43  ,gs3 number path '//gs3'
     44* ,gs4 number path '//gs4') x
    SQL> /
    
            ID        GM1        GM2        GM3        GM4        GS1        GS2        GS3        GS4
    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
         83201    20575.2    20761.2    41583.6      46896      51438      51903     103959     117240
         83202      81000          0      16200          0     202500          0      40500          0
    
    SQL>
    
  • Tracing of data from CSV file to XY Chart

    Hi all

    I need to read data from a worksheet (*.) CSV) and then to trace in LabVIEW.

    The file contains three values

    Time, Date, temperature value

    For example, here are the Logs.

    16:46:59,31/01/14,+018.2C
    16:47:59,31/01/14,+018.2C
    16:48:59,31/01/14,+018.2C
    16:49:59,31/01/14,+018.2C
    16:50:59,31/01/14,+018.5C
    16:51:59,31/01/14,+018.5C
    16:52:59,31/01/14,+018.5C
    16:53:59,31/01/14,+018.5C
    16:54:59,31/01/14,+018.5C
    16:56:40,31/01/14,+018.5C
    16:57:40,31/01/14,+018.5C

    .

    .

    .

    .

    .

    .

    23:51:24,31/01/14,+015.0C
    23:52:24,31/01/14,+015.0C
    23:53:24,31/01/14,+015.0C
    23:54:24,31/01/14,+015.0C
    23:55:36,31/01/14,+015.0C
    23:56:44,31/01/14,+015.0C
    23:57:44,31/01/14,+014.6C
    23:58:44,31/01/14,+015.0C
    23:59:44,31/01/14,+015.0C

    What I have to do is create a VI in LabVIEW to visualize these data.

    I did it as below:

    It seems correct, but the x axis is the axis of time and 16:46:59 it's just to show 16, I know that I have not done something to handle this.

    But I'm not able to find what I can do in this case.

    Please suggest how to get exact values full time on the x-axis.

    Code of your VI contains a bit of 'orphan' reading of the worksheet"which has wired the file path.  Diagram-disable (or remove) this superfluous code and your VI will work very well with Temp.txt in control of the path of the file.

    Bob Schor

  • Errro message "cannot copy file: path is too deep.

    Inequality on the what, why, how do to the error message "cannot copy file: path is too deep." I would like to know the causes and possible prevention and or all of the information available on this issue. The problem occurs when copying large files and sometimes small files on external hard drive to the top.

    Even though the file itself may become a 9-character file name extension, it could be buried inside several files.  Thus, when you step on your external USB drive and it appears as, say, M: drive, the number of characters in the complete path to the file starting with "M:\. "and including all of the directories in the path to the file as well as the number of characters in the name of the file itself must not exceed 255 or Windows refuses to handle.

    Robocopy is a command line program.  You must type in the command from a command prompt window (start-> Run-> "cmd").  It works by accessing the file using a set of routines to copy the different library that does not have the limit of 255 characters.  A documentation file must accompany Robocopy explaining how to use it.

    Another method that might work for you is to take the folder that your .wmv file is in (or maybe both files above) and to temporarily move to the root directory of your external hard drive.  This shorten the path to the file and allow a normal copy of work.

    HTH,
    JW

  • Why some items in 'Open an existing project' have just the name of the project and others have access to the entire file path?

    I have SP1 2012 LabVIEW and on the main screne of LabVIEW selecrt "show projects".

    Why some elements of 'Existing Open' (project) have just the name of the project and others have access to the entire file path?

    Examples of two lines in the list of projects.

    Ping.lvproj (with a path: C:\Users\mlevine\Documents\MPCE EQT\EQT Software\Ping.lvproj)

    C:\Users\mlevine\Documents\Common package Mission trainer (CMPT) \SUW Surface Warfare\Weapon permission Panel (WAP) \WAP LabVIEW Software\WAP fire authorization server 28 April 2015

    No chance, it's because I made a copy of this software and stored on a network drive power off and it went out of this network drive?

    So if LabVIEW sees two or more versions of the same software, he decides to use the name to differentiate between full path?

    I'd still rather it shows just the name of the project and if you hover over the name it shows the full path.

    Thank you

    Mark

    If you have opened a project of the same name from a different location, it is when it shows the full path both - in this case showing just the name of the project would not help because it would be the same thing!

  • Cannot copy #BSSC: cannot find specified / file path.

    Recently, I got my data from formatted hard drive and it to stored in my partition active, but I'm unable to copy data from one place to another place, and it shows the same error message I wrote on the start menu. Can someone tell me how to fix it!

    Cannot copy #BSSC: cannot find specified / file path.

    Hello Leal,

    This problem can occur because the file path / you are specifying no longer exists. This means that the destination on your computer folder no longer exists even if it is displayed in Solution Explorer.

    To resolve this problem, use one of the following methods:

    • Recreate the folder on your computer and then copy or move the file to the folder.
    • Copy or move the file to another folder on your computer...

      Let us know if that helps.

      Marilyn

  • System cannot find the specified file "[path]" \hpzshl.ice_suffix.. ". exe"on Windows 8.1

    I've updated my OS to Windows 7 64-bit edition of Windows 8.1 pro 64-bit, and when you try to reinstall the software and the driver for my printer HP Officejet J4580 all-in-one I get all sorts of errors. It worked perfectly on Windows 7.

    I get the most common error is: System cannot find the specified file "[path]" \hpzshl.ice_suffix.. ". exe', as well as the facility is abandoned.

    I tried a lot of solutions from the HP Web site and these forums, but my problem is still there.

    I already tried the long solution presented here:

    http://h30434.www3.HP.com/T5/printer-all-in-one-install-Setup/install-error-quot-the-system-cannot-f...

    and

    http://support.HP.com/us-en/document/c04206080

    I even found the directory where installation has been decompressed and copied to the desktop, but the error persists.

    I need the complete software because I need to use my printer Officejet scanner, so I can't just simply print drivers.

    I need desperate help on getting this new work.

    Specifications of the computer:

    CPU: Intel Core i7 - 4820 K Quad-Core 3.70 GHz 10 MB Intel Smart Cache LGA2011

    : DDR3 memory / 1866 MHz Quad Channel 16GB (4GBx4)

    Printer: HP Officejet J4580 all-in-one; connected via USB

    OS: 8.1 Pro 64 bit Windows

    GPU: AMD Radeon R9 200 series

    I finally solved it by myself after many hours of pain.

    I clean any installation of HP from my computer using the HP Officejet software and driver removal utility:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=MP-110151-1&cc=us&DLC=en&LC=en&OS=4158&product=3645100&sw_lang=

    After the computer restarts, I moved on the desktop, the installation directory unpacked that HP printer install wizard for Windows had previously downloaded and launched.

    I deleted all files in the directory %Temp%.

    I disabled McAfee antivirus real time and Windows Deffender analysis.

    I ran the setup.exe in the installation directory in my office.

    The installation is smoothly and completed. I have already tested the printer and all features function normally.

    I hope these steps help someone with similar problems to get the software installed.

  • Backup files Vista - "Windows could not find any backup sets [file path]."

    I have a Vista computer.  The hard drive broke so until I replaced it I backed up all the files on the computer to another computer running Windows 7. I did it in the backup and Restore Center.  I made a backup of files, not a full backup of the system (I've seen the full backup of the system mentioned in other posts, but that was not an option... maybe which is only available on Vista Premium).  In any case, I replaced the hard drive and then try to restore the files, but I get the message "Windows could not find any backup sets [file path]."  Anyone have any ideas?  Thank you.

    Here is an article on the restore procedure:http://www.vista4beginners.com/How-to-restore-files to make sure you do this right.  It's a selective restore of a full or selective backup (not a full restore from a full backup) - but since you did a full backup, it matches your process more closely than would a full restore.

    Here is an article on the advanced use of restoration (during normal restore does not work):http://www.mayankraichura.com/post/2009/08/06/Avdvanced-Restore-via-Windows-Vista-Backup-and-Restore-Center.aspx.

    Restore files from a backup
    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-files-from-a-backup

    Back up and restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    I also found the following (but don't know if it of true or not):

    1. after the start of "backup and Restore Center."

    2. I chose "Advanced Restore"

    3. I was did not an administrator password... maybe because my account is an administrator account.

    4 choose "files from a backup made on a different computer.

    5. in the dialog box indicating "Select the location of the backup to restore", select "hard drive, CD or DVD...". »

    6. under the drop-down list box, select your drive/partition and continue

    7. If all the backups on your drive, it will show a list of them.

    8. in my case, he showed a backup, but in the backup location, it will show "backup location is not available."

    9. I was frustrated, but then I somehow just select this backup (Yes... even if he said that thebackup location is not available " ")

    10. and you press "next".

    11 guess what... no error!

    12. a window appeared asking me if I wanted to do a full restore, or I want to select specific folders or files.

    13. I selected the folders I wanted to restore and bingo... it their restored smoothly.

    14. so that the next time see a mistake, try to continue with him... ;)

    I don't know if this will help, but it does not provide much information about the process (when it works).  I hope you find any error or discrepancy in your procedure and it will clear up and allow you to restore.

    I hope this helps.

    Good luck!
    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • BB10 - Audio/video in HTML5 - reading file from the file system

    Hello.

    I tried to read a file from the file system on the BB10 Dev Alpha, using the HTML5 video + HTML5 Audio implementation, but it seems to not work for me with the following source code:

    var audio = document.createElement('audio');
    audio.src="/accounts/1000/shared/music/testfile.wav";
    audio.controls = true;
    
    var video = document.createElement('video');
    video.src="/accounts/1000/shared/videos/testfile.avi";
    video.controls = true;
    

    Referring to the HTML5 Audio API documentation and Video of HTML5 , I used the example presented here source code, but I still get the following error message:

    Anyone now how to get it working or if it is not yet implemented in the BB10 WebWorks API/framework?

    Well, I believe that what could be the problem.  In order to access to the / shared the location of the folder, your application should allow the permission to do so.  This can be done by adding the following to your config.xml file:

    
        access_shared
    
    

    Next, you need to whitelist the way file:/// by adding an element to access.  I remember that's how its done:

    
    

    Note You can whitelist all areas using the following:

    
    

    Hope that helps.

Maybe you are looking for

  • How can I transfer medical records to cd on my mac

    How to transfer to my mac mini for emailing purpose written documents to a CD?

  • Disconnection keyboard alpha 12 problems

    Is it really so easy to unplug the keyboard? The keyboard and the touchpad seems to disable a lot when I use it on my lap. Whenever I have change places, or move a bit, keyboard disconnects, and then I have to disconnect the physical keyboard and rec

  • I have several questions about performance in XP that I asked about

    I have maybe something to do with my pc which has caused several issues that I have been asking questions on this site and have yet to get solved. Maybe it's a matter of slow internet access or an intermittent problem of internet access or a busy RAM

  • I can't send emails. Error number: 0x800CCC79

    I can't send emails. Here is the error: the message could not be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing. To resolve this issue, go to help, search for "Troubleshoot Windows Mail" and read the sect

  • Defender\MpOav.dll Windows prevents facilities

    When I tried to install the latest version of Silverlight, the error came as follows: it\ Program Files\Windows Defender\MpOav.dll prevents installation. This error is also coming up with a few other facilities.