Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dashen

    adding an XML node an already existing XMLDocument

    Meh, I give up on trying to use the XML format. I am just going to string manipulate it and pass it as an IOStream and write is as an XML. Not eloquent like I wanted, but it will get the job done. Thanks for the help anyways.
  2. dashen

    adding an XML node an already existing XMLDocument

    Which points me back to my original question as to what is the specific method that would allow me to create those aforementioned nodes. I wrote the XML using XMLWriter, but if the document already exists, what method do I use to put a new node into the document?
  3. dashen

    adding an XML node an already existing XMLDocument

    I am not even asking for you to code the project. You give me pseudo code, which does not help me in what I am trying to do. Considering I have a lot of code already, in the XML format, I already have pseudo code on how to do this, but I am running into an issue of what method is available for...
  4. dashen

    adding an XML node an already existing XMLDocument

    So, you can't even suggest a method in the object library to use?
  5. dashen

    adding an XML node an already existing XMLDocument

    That pseudocode doens't help. I am asking for the specific method to use.
  6. dashen

    adding an XML node an already existing XMLDocument

    System.NullReferenceException: Object reference not set to an instance of an object. at _Default.btnReport_Click(Object sender, EventArgs e)" This is what I get as an error when I try to run the code that I made at the beginning. I believe these errors are tied to the errors that I mentioned...
  7. dashen

    adding an XML node an already existing XMLDocument

    Otherwise you should be able to open the doc at the specific node, then just create a new node and add the new node to the existing node." So if I selected the "dataobject" node. What is the method to add the node that I create? Like I said, I did quite a bit with the XMLDocument object, but...
  8. dashen

    adding an XML node an already existing XMLDocument

    Yeah, I actually wrote quite a bit using an XMLWriter. That snippet of code was from my project, but I found out that the tag was not to spec for the SDK I am using. I could the text XML from SQL and manipulate it with some String Method (any idea which one I could use, but is there a better...
  9. dashen

    adding an XML node an already existing XMLDocument

    is there a quick way of doing that?
  10. dashen

    adding an XML node an already existing XMLDocument

    I need to put this into the system <overrides> <override index="1"> <datetime></datetime> <classification></classification> <explanation></explanation> </override> </overrides> This node isn't already a tag in the document so I don't think I can use something like...
  11. dashen

    Modifying an XML Document

    Oh okay, so I just ran the system to a file and it did append the tag with the information I wanted. The problem is I was not able to push this to the database for some reason.
  12. dashen

    Modifying an XML Document

    When I load the XML into the table that I am running off of, and look at the XML the overridingclassification tag has no entry in it. I am trying to figure out why that is the case.
  13. dashen

    Modifying an XML Document

    Oh one more thing, the tag "overridingclassification" is already in the document.
  14. dashen

    Modifying an XML Document

    myXmlDoc.LoadXml(myReader("XML")) myReader.Close() myXmlDoc.SelectSingleNode("//dataobject/overridingclassification").InnerText = ddlOverride.SelectedValue.ToString lblResult.Text = myXmlDoc.OuterXml.ToString() I am trying to modify an...
  15. dashen

    String manipulation

    Thanks
  16. dashen

    String manipulation

    I posted earlier on how I needed to convert an XML I created into a String format for some vendor software. I have done that thanks to earthanfire's help. Problem is the vendor software is being very picky. It doesn't even seem to like the encoding tag for XML, which makes no sense because...
  17. dashen

    Convert XmlDocument to a string

    THANKS!!!!
  18. dashen

    Convert XmlDocument to a string

    Yeah, I know how to get individual elements, but I want to get the whole text value, so that I can store it in a text field in a database. That is very different. Do I need to use a StreamReader?
  19. dashen

    Convert XmlDocument to a string

    Private myQuestions As New XmlDocument myQuestions.Load(filename) myQuestions.Value.ToString I have an xml file that I would like to load into a SQL database as a text file. I cannot load the xml file directly because I am using a vendor software that requires the Text field. I am not sure...
  20. dashen

    Trying to convert a text in csv to a certain format of date

    function getfile(byval filename) dim fs: set fs = createobject("Scripting.FileSystemObject") If InStr(FileName, ":\") = 0 And Left (FileName,2)<>"\\" Then fileName = FS.GetSpecialFolder(0) & "\" & FileName End If Dim oTS Instantiate TextStream object to open the text...

Part and Inventory Search

Back
Top