Hi guys
I'm just starting a project which requires some pretty hardcore linq to xml to be used and I am just wondering what people consider best practice and lessons learnt.
For instance, I am worried about all the nulls that are possible all over the place... This is something that I am using but how do other people deal with it:
...
Hi Pro's,
which parser (java) would you recommend for parsing GPX data?
Im looking for a one that is very intuitive to use and should not need too much RAM (it seems that DOM requires too much, doesn't it?). I have no idea about parsing xml, so it is time for me to learn this ;-)
My documents are not very huge and are always read twice(...
While developing a joomla plugin, if my plugin folder looks like so:
/install.xml
/mainPg.php
/subfolder/lib.php
/subfolder/config.php
Would the tag look like this?
<files>
<filename plugin="mainPg">mainPg.php</filename>
<folder>subfolder</folder>
</files>
...
HI. I need a description of file extensions like this http://whatis.techtarget.com/file-extension-list-A/0,289933,sid9,00.html
It should be in xml file or in database. The structure should be like this {Type, Extension, Description}. Where can I find it?
...
We have a history table that stores xml web service requests and responses. Currently it stores them into an XML field, but we're having performance issues with inserts. We only insert records, no updates, selects or deletes. We've truncated the table and rebuilt the index, to no avail. The table has a Primary clustered index on the ...
Hi,
I have a following XML code:
<Group>
<GElement code="x">
<Group>
<GElement code="x">
<fname>a</fname>
<lname>b</lname>
</GElement>
<GElement code ="f">
<fname>fa</fname>
</GElement>
</Group>
</GElement>
<GElem...
I'm parsing Xml data which has entries like this:
<item name="UserText" type_name="gh_string" type_code="10"> </item>
I'm supposed to read the 6 spaces as a String, but both the InnerText and InnerXml values of the System.Xml.XmlNode are zero length Strings.
Is there any way I can get at this whitespace data in existing files an...
How do I use XMLStreamWriter to write exactly what I put in? For instance, if I create script tag and fill it with javascript I don't want all my single quotes coming out as '
Here's a small test I wrote that doesn't use any of the abstractions I've got in place, just calls to writeCharacters.
public void testWriteCharacters() ...
Okay... I'm trying to use the most recent version of ITextSharp to turn an XML file into a PDF. It isn't working.
The documentation on SourceForge doesn't seem to have kept up with the actual releases; the code in the provided example won't even compile under the newest version.
Here is my test XML:
<Remittance>
<RemitHeader>
<Paye...
I am trying to generate a SOAP XML request that looks something like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dto="dto" xmlns:com="">
<soapenv:Header>
<dto:AuthenticationDTO>
<dto:LOGIN_ID>login</dto:LOGIN_ID>
<dto:LOGIN_PASSWORD>login</dto:LOGIN_PASSWORD>
</dto:Authent...
I'm just starting with Android and everything seems to be working fine, but when I try to look at any XML file in eclipse, I get the following error. The only way I can see them is by "Opening With" -> TextFile.
org.eclipse.core.runtime.CoreException: Error opening the Android XML editor. Is the document an XML file?
at com.android.id...
What is the CodePage for DBCS so I can encode an xml string and show it in a asp.net text box? I don't think I should have to convert the characters myself when Server.HTMLEncode will work if the string is DBCS.
To clarify: the binary represenation of the xml string(Base64) is stored in the database in a column of nvarchar(max) datatyp...
I often find this strange CDATA tag in XML files:
<![CDATA[]]>
I have observed that this CDATA tag always comes at the beginning, and then followed by some stuff.
But sometimes it is used, sometimes it is not. I assume it is to mark that some "data" will be inserted after that. But what kind of "data"? Isn't anything I write in XML t...
I am using an XSL transformation on an xml file to create an xml document. The problem i am running into is that when i go to view the generated source (the transformed source) i can't see the DOCTYPE attribute of the html so i don't know if its being emitted properly.
Is there any way to view the doctype in this way?
...
Getting multiple data items in an element with linq to xml
I have an xml file like this
<TopLevel>
<Inside>
Jibba
</Inside>
<Inside>
Jabba
</Inside>
</TopLevel>
I was given said xml and and want to get all the elements. Here is the code I have.
var q = from c in loaded.Descendants("TopLevel")
select (...
I want to send an XML to another Asp Classic page on the same domain. i am using following code for sending XMl
url = "http://localhost/api/xmlget.asp"
information = "<Send><UserName>Colt</UserName><PassWord>Taylor</PassWord><Data>100</Data></Send>"
Set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST", url, fals...
I want an asmx webservice with a method GetPeople() that returns the following XML (NOT a SOAP response):
<People>
<Person>
<FirstName>Sara</FirstName>
<LastName>Smith</LastName>
</Person>
<Person>
<FirstName>Bill</FirstName>
<LastName>Wilson</LastName>
</Person>
</People>
How can I d...
I'm trying to create a JPA Entity backed by a view which does not have an id. The rows are uniquely defined by two columns, product id and node id. How can I specify that the id for the entity is a multi-column id, and do it using xml, not annotations?
...
I have some xml that I manually construct in a function that is something like:
$xml = "<myxml>";
$xml .= "<items>";
$xml .= "<item1>blah</item1>";
$xml .= "</items>";
$xml .= "</myxml>";
When I output the string though I'd like the newlines to be present. How can I add this to the string without affecting a web service accepting the ...
Getting attributes using minidom in Python, one uses the "attributes" property. e.g. node.attributes["id"].value
So if I have <a id="foo"></a>, that should give me "foo". node.attributes["id"] does not return the value of the named attribute, but an xml.dom.minidom.Attr instance.
But looking at the help for Attr, by doing help('xml.do...