Issue I have a XML file that looks like this: <Info> <ID>1</ID> <Result> <ID>2</ID> </Result> </Info> I want to count how many Info/Result/ID I have in this file. I am doing this: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("myFile.xml"); xmlNodeList MyList
Continue readingTag: xml
[SOLVED] Adding namespace to parent and child nodes in C# during xml serialization
Issue I’m serializing XML from a C# class, and I need to include a namespace in the root and child elements. When I add a namespace from XmlSerializerNamespaces, it adds all of the namespaces to the root element. I need
Continue reading[SOLVED] XML text in Varchar(max) mysterious question mark
Issue I have a function in a VB .NET class library, which inserts XML text into a VARCHAR(MAX) column. The column results in an extra “?” at the front of the data in the column. I do not want that
Continue reading[SOLVED] Missing word in XML, although included in function?
Issue By writing this Dim AiD As XmlElement = myXML.CreateElement("ns8:AiD", aNamespace) AiD.InnerText = "myInnerText" AiD.SetAttribute("xsi:type", "ns17:anObject") AiD.SetAttribute("xmlns:ns17", "http://aLink") AiD.SetAttribute("xmlns:xsi", "http://anotherLink") WR.AppendChild(AiD) I want my XML file to contain this: <ns8:AiD xsi:type="ns17:anObject" xmlns:ns17=http://aLink xmlns:xsi=http://anotherLink>myInnerText</ns8:AiD> Unfortunately, it contains this: <ns8:AiD type="ns17:anObject" xmlns:ns17="http://aLink"
Continue reading[SOLVED] Import XML into worksheet not workbook
Issue I am trying to have Excel import 200 .xml files into separate worksheets. I have some code that creates new worksheets, and that works. However I can’t seem to find the proper code to import an .xml file into
Continue reading[SOLVED] How to create CDATA tag in Excel vba?
Issue Can anyone please help. I am trying to convert excel data into xml file uisng vba. My xml file looks like this, <product> <info><i>Samsung</i></info> </product> I want the html tags not to be parsed.so trying to add cdata in
Continue reading[SOLVED] XSD schema not validating in basex
Issue I am tasked with adding type="DeptType" to an xsd file and validating it in basex against an xml document. I have validated both in notepad++ but I get an error in basex when trying to validate. XSD <?xml version="1.0"?>
Continue reading[SOLVED] XML with 2 namespace. Issue with attributes and unable to replace namespace
Issue I’m struggling to resolve an xml transformation that I’m working on. The Input XML has 2 namespaces which makes it challenging and I need to replace the input XML’s namespace value to some other value. Basically, I am trying
Continue reading[SOLVED] Return for specific title keyword with beautifoulsoup
Issue I’m trying to create a web scraper that returns articles only if there is a certain keyword in the title from an rss feed (xml format). However, whenever I run the code it returns blank, even if the title
Continue reading[SOLVED] java convert xml String to List<String>
Issue I want to convert a String which is an XML to List. Logic needs to be generic. only XPath of records should be taken as input. sometimes this can be any kind of data. I tried internet help but
Continue reading