How can I load the selected XML File (Selected from a Listview) into the correct Textboxes?

Right, so I have a windowsform with lots of Textboxes, where the user can type in Information, and then hit "Save", once its saved it goes into a sortof XML Format 
<?xml version="1.0" encoding="utf-8"?>
<!--Database-->
<Case>
  <Person>l<Driver></Driver><License-Holder></License-Holder><Address></Address><Phone></Phone><Date-of-Birth></Date-of-Birth><Registration></Registration>
Like that.
Now, on my Startup Form (The main form) there is a Listview that I gave the name Objectlist1. This list displays ANY file located in a specific folder on my computer. This is also where the Saved files appear.
The list also updates every 5th second so after you save it appears quickly.
Now, the Files are saved using the content or Value of the first Textbox:
Dim XmlWrt As XmlWriter = XmlWriter.Create("C:\Users\USER\Desktop\TESTFOLDER\" + Firsttextbox.Text, settings)
So it appears in the folder and on the list with the value inserted in the first Textbox.
My problem comes when I want to load this back (Or reverse the function if you will)
Where I can go to the Objectlist1/Listview, either doubleclick a file or Mark a file, and hit my button "Retrieve"
I want the Form where you could input all the values to show - which it does
And the information from the XML/File saved to appear where it once was typed or inserted.
Here is an example of the code used to save the values from the Textboxes;
Private Sub Savebutton_Click(sender As Object, e As EventArgs) Handles Savebutton.Click
        If IO.File.Exists(Pholderbox.Text) = False Then
            Dim settings As New XmlWriterSettings()
            settings.Indent = True
            Dim XmlWrt As XmlWriter = XmlWriter.Create("C:\Users\USER\Desktop\TESTFOLDER\" + Pholderbox.Text, settings)
            With XmlWrt
                ' Write the Xml declaration.
                .WriteStartDocument()
                ' CLIENT
                ' Write a comment.
                .WriteComment("Database")
                ' Write the root element.
                .WriteStartElement("Case")
                ' Start our first person.
                .WriteStartElement("Person")
                .WriteString(Textbox1.Text)
                ' The person nodes.
                .WriteStartElement("Driver")
                .WriteString(Textbox2.Text)
                .WriteEndElement()
I've tried multiple codesamples but they all give either "XML Not found" or such Overloads.
This is the current code I used when trying to make it work
Private Function ReadSettingsXML(ByVal path As String) As MySettings # On Debug It marks here and tells me it wasn't found.
        Dim thisSettingsInfo As New MySettings
        If My.Computer.FileSystem.FileExists(Objectlist1.SelectedItems.ToString) Then
            Dim settingsInfo = XElement.Load(Objectlist1.SelectedItems.ToString)
            If settingsInfo IsNot Nothing Then
                For Each mainGroup As XElement In settingsInfo.Elements
                    If mainGroup.Name = "<Database>" AndAlso mainGroup.HasElements Then
                        For Each subGroup As XElement In mainGroup.Elements
                            If subGroup.Name = "<Person>" Then
                                thisSettingsInfo.Textbox1 = subGroup.Value
                            ElseIf subGroup.Name = "<Driver>" Then
                                thisSettingsInfo.Textbox2 = subGroup.Value
                            ElseIf subGroup.Name = "<Address>" Then
                                thisSettingsInfo.Textbox3 = subGroup.Value
                            End If
                        Next
                    End If
                Next
            Else
                thisSettingsInfo = Nothing
                Throw New Exception("The settings XML file is corrupt and cannot be read.")
            End If
        Else
            thisSettingsInfo = Nothing
            Throw New Exception("The settings XML file could not be located.")
        End If
        Return thisSettingsInfo
    End Function
    Private Sub LoadXML_Click(sender As Object, e As EventArgs) Handles LoadXML.Click
        Dim settings As New MySettings
        settings = ReadSettingsXML(Objectlist1.SelectedItems.ToString)
        If settings IsNot Nothing Then
            Dim sb As New System.Text.StringBuilder
            With settings
                Caseworker.Textbox1.Text = .Person
                Caseworker.Textbox2.Text = .Driver
                Caseworker.Textbox3.Text = .Address
            End With
        End If
    End Sub
Also, the "Caseworker" is the form where all the textboxes are located.
Been stuck on this for two working days, so any help is highly appreciated 
Codesamples are also highly welcome so I can see what the heck you did and find and answer to my problems.

I found a code that might be close to what I'm looking, but as of this code used here, it looks for a static document that already exist and is located in the code.
See this one here, checks for the XML file, and since I can't link one program to 1 file, when its gonna have and use 100's of files.
        If (IO.File.Exists("MyXML.xml")) Then
            Same here with the static document.
            Dim document As XmlReader = New XmlTextReader("MyXML.xml")
            While (document.Read())
                Dim type = document.NodeType
                'if node type was element
                If (type = XmlNodeType.Element) Then
                    If (document.Name = "FirstName") Then
                        TextBox1.Text = document.ReadInnerXml.ToString()
                    End If
                    If (document.Name = "LastName") Then
                        TextBox2.Text = document.ReadInnerXml.ToString()
                    End If
                End If
            End While
Am I at least close here, people? 
Can anyone help with the now critical issue I got?
I basically need to change these two;
 If (IO.File.Exists("MyXML.xml")) Then
            Same here with the static document.
            Dim document As XmlReader = New XmlTextReader("MyXML.xml")
To whatever value, so they read from the file SELECTED in my Listview
Cos the program saves files according to the info inserted in textboxes, so it can have whatever name you can think of, I need the program to "find and load" that file, once its selected, and then once I hit Retrieve or LOAD or whatever button, it
injects the info from the File to the correct Textboxes.
And I think this will work to get the info in the right boxes;
 If (document.Name = "FirstName") Then
                        TextBox1.Text = document.ReadInnerXml.ToString()
                    End If
                    If (document.Name = "LastName") Then
                        TextBox2.Text = document.ReadInnerXml.ToString()
Any good advise? I'm stranded here.

Similar Messages

  • How can i load Client side XML file to Table

    Hi,
    How can i load the all the XML files (near 10,000 files) available in client machine to the XML table .
    I did try with directrory list in the Webutility demo form, but when the number of file is near to 1,500 its giving error.
    Please suggest the best method to implement my requirements.
    1. XML fies are in a folder in end users machine(Windows OS)
    2. I need to load all the XML files to table (Oracle Database is in Unix)
    I am using forms 10g
    Thanks in advance.
    Rizly

    Hi,
    What is the error you are getting when you reach 1,500 records? Can you post it? You mentioned you are using the webutil to load them. How you are loading? From the client machine you are loading to the database directly? Can you post the code you are using for that?
    -Arun

  • How can i write also to xml file the settings of the Tag property to identify if it's "file" or "directory" ?

    The first thing i'm doing is to get from my ftp server all the ftp content information and i tag it so i can identify later if it's a file or a directory:
    private int total_dirs;
    private int searched_until_now_dirs;
    private int max_percentage;
    private TreeNode directories_real_time;
    private string SummaryText;
    private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
    var directoryNode = new TreeNode(name);
    var directoryListing = GetDirectoryListing(path);
    var directories = directoryListing.Where(d => d.IsDirectory);
    var files = directoryListing.Where(d => !d.IsDirectory);
    total_dirs += directories.Count<FTPListDetail>();
    searched_until_now_dirs++;
    int percentage = 0;
    foreach (var dir in directories)
    directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
    if (recursive_levl == 1)
    TreeNode temp_tn = (TreeNode)directoryNode.Clone();
    this.BeginInvoke(new MethodInvoker( delegate
    UpdateList(temp_tn);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    foreach (var file in files)
    TreeNode file_tree_node = new TreeNode(file.Name);
    file_tree_node.Tag = "file";
    directoryNode.Nodes.Add(file_tree_node);
    numberOfFiles.Add(file.FullPath);
    return directoryNode;
    The line i'm using to Tag is:
    file_tree_node.Tag = "file";
    So i know what is "file" then i make a simple check if the Tag is not null then i know it's a "file" if it's null then it's directory.
    For example this is how i'm checking if it's file or directory after getting all the content from my ftp server:
    if (treeViewMS1.SelectedNode.Tag != null)
    string s = (string)treeViewMS1.SelectedNode.Tag;
    if (s == "file")
    file = false;
    DeleteFile(treeViewMS1.SelectedNode.FullPath, file);
    else
    RemoveDirectoriesRecursive(treeViewMS1.SelectedNode, treeViewMS1.SelectedNode.FullPath);
    I also update in real time when getting the content of the ftp server xml file on my hard disk with the treeView structure information so when i'm running the program each time it will load the treeView structure with all directories and files.
    This is the class of the xml file:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Xml;
    using System.Windows.Forms;
    namespace FTP_ProgressBar
    class TreeViewXmlPopulation
    // Xml tag for node, e.g. 'node' in case of <node></node>
    private const string XmlNodeTag = "node";
    // Xml attributes for node e.g. <node text="Asia" tag=""
    // imageindex="1"></node>
    private const string XmlNodeTextAtt = "text";
    private const string XmlNodeTagAtt = "tag";
    private const string XmlNodeImageIndexAtt = "imageindex";
    public static void DeserializeTreeView(TreeView treeView, string fileName)
    XmlTextReader reader = null;
    try
    // disabling re-drawing of treeview till all nodes are added
    treeView.BeginUpdate();
    reader = new XmlTextReader(fileName);
    TreeNode parentNode = null;
    while (reader.Read())
    if (reader.NodeType == XmlNodeType.Element)
    if (reader.Name == XmlNodeTag)
    TreeNode newNode = new TreeNode();
    bool isEmptyElement = reader.IsEmptyElement;
    // loading node attributes
    int attributeCount = reader.AttributeCount;
    if (attributeCount > 0)
    for (int i = 0; i < attributeCount; i++)
    reader.MoveToAttribute(i);
    SetAttributeValue(newNode,
    reader.Name, reader.Value);
    // add new node to Parent Node or TreeView
    if (parentNode != null)
    parentNode.Nodes.Add(newNode);
    else
    treeView.Nodes.Add(newNode);
    // making current node 'ParentNode' if its not empty
    if (!isEmptyElement)
    parentNode = newNode;
    // moving up to in TreeView if end tag is encountered
    else if (reader.NodeType == XmlNodeType.EndElement)
    if (reader.Name == XmlNodeTag)
    parentNode = parentNode.Parent;
    else if (reader.NodeType == XmlNodeType.XmlDeclaration)
    //Ignore Xml Declaration
    else if (reader.NodeType == XmlNodeType.None)
    return;
    else if (reader.NodeType == XmlNodeType.Text)
    parentNode.Nodes.Add(reader.Value);
    finally
    // enabling redrawing of treeview after all nodes are added
    treeView.EndUpdate();
    reader.Close();
    /// <span class="code-SummaryComment"><summary>
    /// Used by Deserialize method for setting properties of
    /// TreeNode from xml node attributes
    /// <span class="code-SummaryComment"></summary>
    private static void SetAttributeValue(TreeNode node,
    string propertyName, string value)
    if (propertyName == XmlNodeTextAtt)
    node.Text = value;
    else if (propertyName == XmlNodeImageIndexAtt)
    node.ImageIndex = int.Parse(value);
    else if (propertyName == XmlNodeTagAtt)
    node.Tag = value;
    public static void SerializeTreeView(TreeView treeView, string fileName)
    XmlTextWriter textWriter = new XmlTextWriter(fileName,
    System.Text.Encoding.ASCII);
    // writing the xml declaration tag
    textWriter.WriteStartDocument();
    //textWriter.WriteRaw("\r\n");
    // writing the main tag that encloses all node tags
    textWriter.WriteStartElement("TreeView");
    // save the nodes, recursive method
    SaveNodes(treeView.Nodes, textWriter);
    textWriter.WriteEndElement();
    textWriter.Close();
    private static void SaveNodes(TreeNodeCollection nodesCollection,
    XmlTextWriter textWriter)
    for (int i = 0; i < nodesCollection.Count; i++)
    TreeNode node = nodesCollection[i];
    textWriter.WriteStartElement(XmlNodeTag);
    textWriter.WriteAttributeString(XmlNodeTextAtt,
    node.Text);
    textWriter.WriteAttributeString(
    XmlNodeImageIndexAtt, node.ImageIndex.ToString());
    if (node.Tag != null)
    textWriter.WriteAttributeString(XmlNodeTagAtt,
    node.Tag.ToString());
    // add other node properties to serialize here
    if (node.Nodes.Count > 0)
    SaveNodes(node.Nodes, textWriter);
    textWriter.WriteEndElement();
    And this is how i'm using the class this method i'm calling it inside the CreateDirectoryNode and i'm updating the treeView in real time when getting the ftp content from the server i build the treeView structure in real time.
    DateTime last_update;
    private void UpdateList(TreeNode tn_rt)
    TimeSpan ts = DateTime.Now - last_update;
    if (ts.TotalMilliseconds > 200)
    last_update = DateTime.Now;
    treeViewMS1.BeginUpdate();
    treeViewMS1.Nodes.Clear();
    treeViewMS1.Nodes.Add(tn_rt);
    TreeViewXmlPopulation.SerializeTreeView(treeViewMS1, @"c:\XmlFile\Original.xml");
    ExpandToLevel(treeViewMS1.Nodes, 1);
    treeViewMS1.EndUpdate();
    And when i'm running the program again in the constructor i'm doing:
    if (File.Exists(@"c:\XmlFile\Original.xml"))
    TreeViewXmlPopulation.DeserializeTreeView(treeViewMS1, @"c:\XmlFile\Original.xml");
    My question is how can i update the xml file in real time like i'm doing now but also with the Tag property so next time i will run the program and will not get the content from the ftp i will know in the treeView what is file and what is directory.
    The problem is that now if i will run the program the Tag property is null. I must get the ftp content from the server each time.
    But i want that withoutout getting the ftp content from server to Tag each file as file in the treeView structure.
    So what i need is somehow where i;m Tagging "file" or maybe when updating the treeView also to add something to the xml file so when i will run the progrma again and read back the xml file it will also Tag the files in the treeView.

    Hi
    Chocolade1972,
    Your case related to Winform Data Controls, So i will move your thread to Windows Forms> Windows
    Forms Data Controls and Databinding  forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I Load Real-Time XML into SWF

    Hi,
    I am a newbie and I need to load data from an XML file but the data is changed constantly. Is there a way to have the SWF refresh instead of caching the XML content at the first load.
    My current code is as following:
    var index:Number = 0;
    var myxml:XML = new XML();
    myxml.ignoreWhite = true;
    myxml.onLoad = function(success:Boolean):Void{
              loadData();
              setInterval(loadData, 3000);
    function loadData(){
              var messages:XMLNode = myxml.firstChild;
              if(index >= messages.childNodes.length)
                        index = 0;
              var my_message:XMLNode = messages.childNodes[index];
              _root.status_1.htmlText = my_message.childNodes[0].firstChild.nodeValue;
              _root.status_2.htmlText = my_message.childNodes[1].firstChild.nodeValue;
              _root.status_3.htmlText = my_message.childNodes[2].firstChild.nodeValue;
              _root.status_4.htmlText = my_message.childNodes[3].firstChild.nodeValue;
              _root.status_5.htmlText = my_message.childNodes[4].firstChild.nodeValue;
              _root.status_6.htmlText = my_message.childNodes[5].firstChild.nodeValue;
                index++;
    myxml.load("data.xml");
    BTW: the XML is going to be on a remote site.
    Thanks

    you can append a changing varialbe to the data.xml file name to prevent cache retrieval and you can use a loop to periodically load the data but your biggest issue will be loading a cross-domain xml file.  you will need to add cross-domain policy files to the xml hosting site or use a server-side file to serve as a gateway between your swf and the xml file.

  • How can one send email-sized photo files as attachments in Mail, without the photos appearing within the email?s

    How can one send email-sized photo files as attachments in Apple Mail, without the photos appearing in the body of the email?  If it can be done, it's not at all obvious, at least not to me.  Thanks for any help you can provide.

    The "View as icon" option shrinks the photo to an icon in the sender's Apple Mail, but how it appears to the recipient varies dependingy on what e-mail client he/she uses.
    Using Apple Mail 5.0 (the Lion version) at both ends, the sender can use the "View as icon" option to shrink his view of the photo to an icon, but the recipient also using Apple Mail 5.0 still sees the full photo in line with the message text. The recipient can then use the "View as icon" option to shrink it to an icon, but I don't think that's not what jackofarabia is looking for.
    As far as I know there is no way in the current Apple Mail to do what jackofarabia wants. There should be, but there isn't.

  • Can DTD schema for a XML file be a data source to the Crystal Reports?

    Hi All,
    We are trying to generate a crystal report having XML file as a source. And we want to use the DTD schema for the source XML file.
    Please suggest whether DTD schema can be used for crystal reports or not.
    Thanks
    Sriram

    Hi Sriram,
    I think it should work.
    1) Use this pdf for your reference
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90faaea7-8e1e-2b10-e6a7-ea82e11d9e8b ]
    2)if in case it does not help you can convert existing DTD to XSD using this online converter
    [http://www.hitsw.com/xml_utilites/]
    and  then use for generating report from XML file.
    Regards,
    Jeetsinh Parmar.

  • How can i load a big xml data using sql loader into oracle

    hi,
    I have a large xml about 5M at c:\temp and interested to load it in an oracle table with the following structure:
    emp
    empno  number(10),
    ename varchar2(250),
    sal number(15)i am new with xml database
    Best Regards,

    hi,
    when i am trying to follow the steps then getting following error:
    any help will be greatly appreciated:
           SELECT * FROM v$version;
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    DROP directory xmlstore;
    Directory dropped.
    my xml file:
    < ?xml version="1.0" encoding="UTF-8"?>
    <root>
      <id>0</id>
      <info>
        <info_id>0</info_id>
        <info_content>Text</info_content>
      </info>
    </root>
    CREATE directory xmlstore11 AS 'c:\temp';
    Directory created.
    CREATE TABLE test
        (xmldata xmltype);
    TABLE created.
    INSERT INTO test
        VALUES
        (XMLTYPE(bfilename('XMLSTORE11','info.xml'),NLS_CHARSET_ID('AL32UTF8')));
    received error is as follow:
        Error starting at line 24 in command:
    INSERT INTO test
        VALUES
        (XMLTYPE(bfilename('XMLSTORE11','info.xml'),NLS_CHARSET_ID('AL32UTF8')))
    Error report:
    SQL Error: ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00231: invalid character 32 (' ') found in a Name or Nmtoken
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 295
    ORA-06512: at line 1
    31011. 00000 -  "XML parsing failed"
    *Cause:    XML parser returned an error while trying to parse the document.
    *Action:   Check if the document to be parsed is valid.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I load images without XML, please?

    Hello Everyone,
    I would highly appreciate it if someone can point me into the right direction. I have some AS2 code which loads up the images via an xml file. I have been asked to eliminate XML entirely and have images be loaded from with in the library. Aside from images, there are other xml nodes such as:
    image_name, image_description and such.
    What would be the best way going about eliminating the XML and getting the code to load images and other related info from the library. I would highly appreciate your help on this, please.
    Thanks a lot.

    create arrays that contain the same info as the xml.
    p.s.  and, you'll use attachMovie() instead of loadMovie().

  • How can we get  tag of XML file using SAX

    Hi ,
    I'm parsing one SAX parser , I'have almost done this parsing. i have faced problem for one case, i'e how can we get tag from XML file using SAX parser?
    XML file is
    <DFProperties>
    <AccessType>
    <Get/>
    </AccessType> <Description>
    gdhhd
    </Description>
    <DFFormat>
    <chr/>
    </DFFormat>
    <Scope>
    <Permanent/>
    </Scope>
    <DFTitle>gsgd</DFTitle>
    <DFType>
    <MIME>text/plain</MIME>
    </DFType>
    </DFProperties>
    I want out like GET and Permanent... means this one tag which is present inside of another tag.
    Handler class like
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if(_ACCESSTYPE.equals(localName)){
                   accessTypeElement=ACCESSTYPE;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_ACCESSTYPE.equals(_accessTypeElement)) {
                   String strValue = new String(ch, start, length);
                   System.out.println("Accestype-----------------------------> " + strValue);
                   //System.out.println(" " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_ACCESSTYPE.equals(localName)) {
                   _accessTypeElement = "";
    . please any body help me

    Hi ,
    I have one problem,Please help me.
    1. How can I'll identify where exactly my Node is ended,means how how can we find corresponding nodename? in partcular place
    <Node> .............starttag1
    <NodeName>Test</NodeName>
    <Node>................starttag2
    <nodeName>test1</NodeName>
    </Node>..................endtag2
    <Node>.....................starttag3
    <NodeName><NodeName>
    <Node> .........................starttag4
    <NodeName>test4</NodeName>
    </Node>.......enddtag4
    </Node>...........end tag3
    </Node>............endtag1
    my code is below
    private final String _NODENAME = "NodeName";
    private final String _NODE = "Node";
    private String _nodeElement = "";
         private String _NodeNameElement = "";
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    if(_NODE.equals(localName)){
         System.out.println("start");
         if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_NODENAME.equals(_NodeNameElement)) {
                   String strValue = new String(ch, start, length);
                   String sttt=strValue;
                   System.out.println("NODENAME: ************* " + strValue);
    if(_NODE.equals(_nodeElement)){
                   if (_NODENAME.equals(_NodeNameElement)) {
                        String strValue = new String(ch, start, length);
                        String sttt=strValue;
                        System.out.println("nodevalue********** " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_NODENAME.equals(localName)) {
                   _NodeNameElement = "";
    if(_NODE.equals(localName)){
                   System.out.println("NODENAME: %%%%%%%%%");
    please help me. How can I figure node ending for particular nodename

  • How can I combine 200+ XDP (XML) files into one spreadsheet or database for analysis?

    Hi all,
    I've got 200+ XDP files that were created by entering data into a LiveCycle PDF form 200+ times and then exporting the data as XDP 200+ times.
    Now, I want to view all the data at once (for example, in an Excel Spreadsheet or database) so I can look for trends in the data or come up with a summary (for example, 180 of 200 responses answered Question 1 'Yes'). The form does have some image fields, but I don't need to see or analyse those fields.
    I'm a bit of a newbie. Is there an easy way to do this? Thanks!
    - John

    I had a similar goal to gather data from a folder full of XDPs into a spreadsheet to track user behaviors, capture commonly entered values, and run reports.
    If you are familiar with Python, I highly recommend creating a simple script using Python 2.6 and the elementTree (effbot.org) libraries.
    Since I cut my teeth on this project, I found it helpful to break down the script's tasks into individual parts. The material and examples for getting a folder's contents, writing variables in lists, and using elementtree is as terrific as it is scattered in location and diverse in implementation.
    1. Grab an xdp in your directory ( for book in path: )
    2. Parse the xml by using the elementtree iterator
    3. Assign your element's values to variables during iteration
    if element.name == 'dataNode':
         variable = element.text
    4. At the end print your variables with deliminators between each (I used a pipe "|" because commas were commonly used in our forms)
    print "%s|%s|%s|%s|%s" % (currentFileName, variable1, variable2, variable3, variable4)
    Once you are happy with the data printed out to your console; and each row corresponds to a xdp, stream the output to a file and import that file into Excel in a CSV-style text import (specifying your deliminator during the import process)
    so if your script that does the above is called "xdpGrabber.py", run:
    $ python xdpGrabber.py >> xdpSpreadSheet.txt
    and open xdpSpreadSheet.txt in excel.
    There are some gotchas here - repeating nodes can be tricky, and heavily nested or scattered xml structures will add much more complexity to the script.  However, if you are only looking for certain fields that always come in the same order when reading the xdps from top to bottom you can get them using simple "if element.name == 'stuff'" references in the order they appear - as elementtree parses from top to bottom.
    If this is appealing to you, I suggest you run one of your sample xdps against the example script given here: http://www.xml.com/pub/a/2003/02/12/py-xml.html
    I used Python 2.6 and elementtree on a windows XP laptop.  I would routinely create spreadsheets from 3000+ xdps, each with 50-100KB of data, in under 15 minutes.  I'm guessing the real bottleneck is streaming the output to disk. There isn't much out there that can compete with elementtree for speed reading xml!
    If you need some assistance getting started  feel free to reply here or message me for an example script.
    Good luck!
    -Kasey (scriptocratch)

  • How can I load a Key Member on a historical project (conversion) if the employee was recently terminated?

    I can not load Key Members in my conversion if the employee was recently terminated even though they were active historically when the project was open. 

    sundy.liu wrote:
    Unfortunately however, even with the TCP tweaks enabled, I still only get a little over 1 Gb/s through the two aggregated Gig ports. It seems as though the aggregation is only using one port, though MRTG graphs of the two switch ports do in fact show that they are both being utilized equally, essentially splitting the 1 Gb/s speed between
    the two ports.
    Problem with the server? switch? Aggregation software? All the above? At any rate, I seem to be missing something.. Any help regarding this issue would be greatly appreciated!If you're only running a single stream, that's all you'll see. Teaming/aggregating doesn't make one stream go faster.
    If you ran two streams simultaneously, then you should see a difference between a single 1G interface and an aggregate of two 1G interfaces.
    Darren

  • How can I load one photo at a time from Documents into the Firefox Photo Album. Using Vista ome Basic

    I really cannot see exactly where to start

    select the head with one of Photoshop's selection tools
    When doing this, I find it quite helpful to create an intermediate image with a transparent background that contains only the head to be pasted into the second image. First I paste the head onto this transparent background, scale it, rotate it or skew it to make it fit into the other image, adjust the lighting, then select it.
    To be able to paste the head seemlessly into the second image (and without aliasing effects), I make the border of the selection soft (⌥⌘D); my Photoshop has a german interface, so I am not sure about the english localization, this command must be something like "selection -> modify selection -> soft border".
    I would not bother to get the lighting and color excactly right in Photoshop, that is  far easier with the "dodge" and "burn" brushes and color adjustments in Aperture.
    To do this completely in Aperture, you would have first to combine both images into one (for example by creating a book page), then use the retouche->clone tool to stamp the head from one image to the other. I use this occasionally to stamp a face into a flower bud or for  similar effects. However, for this to work you need a plain background and nearly circular shapes to be pasted.
    Léonie

  • How can I stop these weird inert file images from appearing on my desktop?

    Inert file images keep appearing and cluttering up my desktop with names such as: 3FV2JEQy.JPG.part;  9wA_fwAk.JPG.part;  MpxSEQgY.jpg.part   etc.
    It seems to me that they are related to viewing photos from emails with "Preview". (They could be photos from iPhoto also. I cannot be certain).
    My desktop fills up with these weird inert file images and I have to go thru and delete them to clear the mess on my desktop. How can I stop this from occurring??
    Many thanks.
    Running Mavericks 10.9.1 on mid 2010 MacPro

    Strange Files Appear on Desktop  and I Have No Idea Why or What They Do

  • How can I load Numbers 2.3 or iWork from my mac pro to my new Mini??

    Hi guys.  I want to load numbers 2.3 onto my new mac mini running Mavericks. I want 2.3 and 3.0 to run side by side as I have seen others do here.
    My Mini has only ever had 3.0.  I copy and pasted iWorks over, however it did not work though comes up with compatibility error.
    the app store did allow me to update from this method though.
    My mac pro is running 10.6.4 with iWorks 09 running beautifully.
    I was told about trying Migration Assistant, did not work either, My ex HDD has TM for both on there and when I open MA it only recognizes and asks about
    importing from the mini backup only. It is not reading the mac pro backup.
    Any ideas or suggestions are much appreciated.
    I have attempted downloads from net with no avail, I am giving my cc numbers to pple when they say 'I will not charge you'....
    one download was an issue because osx no longer supports ppc power pc games - claytons hard drives on computer.
    Thanks and enjoy.
    I see my other question on moving tables between sheets is stumping ppl, a few views no responses,  Is it POSSIBLE???
    Jason.  Dream Big and achieve everyone.

    Not sure it will work - it might have to do with the licensing requirements; any app downloaded through the app store can be run on as many Macs as you own and control. However, yours is still the old version of  iWork which has an older, separate agreement. Applicable excerpt here:
    Entire SLA here:
    http://www.apple.com/legal/sla/docs/iwork.pdf

  • How can I prevent illustrator to override files downloaded from dropbox to double extension? .ai.ps

    This only happens with dropbox. When I download a file in .ai from the dropbox it assumes it as .ai.ps. However, if I use the synched files, such problem does not occur. I've contacted dropbox to see what they now about it and they responded did: "The Dropbox desktop client syncs files exactly as they exist in the Dropbox folder on your computer. It is possible that Illustrator saves multiple files when you save a document - the extra file may be a hidden file not visible in Finder, but if it is on the Dropbox website it exists in your Dropbox folder. I'd suggest asking Adobe for more information."
    Does someone know how to solve this?
    Thank you kindly

    Hi,
    False alarm. I discovered that there was a demo Version of Suitcase that wasn't visible in ControlPanel-> Programs and Features, but was still partially installed. I Manually cleaned out all the Suitcase remnants I could find and Photoshop now prints! Sorry.

Maybe you are looking for

  • NOT ABLE TO IMPORT MUSIC AND VIDEO FILES FROM IPOD TO COMPUTER/ITUNES LIBRARY !!!!

    Hi.... I am having IPod Nano 5th Generation. I can access music and video files (that are stored in Ipod memory) in Ipod. But when I connect the ipod to computer, I am not able to access/import these music and video files through computer. Also, I am

  • Kerberos, vnc, and ssh

    Hi, I was wondering if anyone had seen these problems trying to enable vnc and ssh support on a Mavericks server (latest OS and Server versions). In particular, I get errors when I attempt to use sso_util:o_util - sso_util configure -R MYSERVER.MYDOM

  • Who's familiar with WAD maps?

    Hi, I am working with GIS by using WAD. Who is working on it as well? I am in SAP. I am looking forward to learning and sharing with you. Thanks, zhan

  • Apps crash when selecting HP Business Inkjet 2600 in print dialog box

    Hope someone can help. With an open PDF document I select the print dialog box. If I select the HP Business Inkjet 2600 the application crashes (tried Preview and Adobe Acrobat). I can select other printers fine. What I have tried so far: Logged into

  • Performance management controls

    What specific controls should an auditor be looking for when looking for effective performance management of business critical oracle databases? I.e. what clues would indicate a good performance management process, what would indicate a poor performa