I'm encoding a document to attach as a base64 encoded element inside an xml document for transmission. It's easy enough, I just slurp the entire file into a byte array and then use MSXML's nodeTypedValue to base64 encode the data as I put it into the element. The problem, however, is that MS XML then adds its own namespace and datatype a...
hi,
I am using xsl script to remove comments from all the portion of the xml. It is actually removing the comments which are in parent node but not from the other interior nodes.
[edited]
Updating the question. My requirement is to remove all the comments from entire XML document.
...
I have below xsl code but it is not working, could anybody please guide me.
<xsl:variable name="indent">
<xsl:if test="@type='Text'">
<xsl:if test="@required='yes'">
<xsl:variable name="indent" select="'return ValidateText(this)'" />
</xsl:if>
<asp:TextBox id="{@id}" onkeypress="{$indent}" runat="...
I am very new to Android Development. I am trying a sample application and it is generating a button dynamically using Java and it is working fine.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
btn=new Button(this);
btn.setOnClickListener(this);
updateTime();
...
I have a static class in a folder off root in my solution. In that static class' folder, there's a subfolder containing XML files. So I've got these files:
/PartialViews/Header/MyStaticClass.cs
/PartialViews/Header/Config/en-US.xml
/PartialViews/Header/Config/jp-JP.xml
...
I'm having trouble using XDocument.Load() with those XML files...
I have a response from Web Service (XML response) in NSArray which is like:
Table
Name John Name
Address Atl /Address
/Table
Now I want to display only Name from this array in my table view.
How to do this? I tried with NSDictionary but I am getting some errors.
Someone with good idea how to do it?
...
Hi,
I am using xml and xqueries.I usually use an xpath expression relative to a parent node to retrieve its child node. But, I am not sure how to do the opposite meaning if I have a child node, how do I retrieve its parent node.
<node id="50>
<childnode1 childid="51" />
<childnode2 childid="52" />
</node>
If I have the node <chi...
I am writing an application that reads in pocket queries from Geocaching.com and displays them on a map. I already have it parsing the gpx and wpts.gpx files. I want to be able to list the associated waypoints under their geocache, but I am at a loss as to how to link the waypoints with their geocaches as there seems to be no reference i...
I am trying to get the value of an attribute of an XML node and set it as a variable using JQuery. Is this possible?
<DataContainer>
<Customers>
<Customer customerId="7366" customerName="Boardwalk Audi" url=""
address="5930 West Plano Pkwy" city="Plano" state="Texas"
zipCode="75093" latitude="33.01...
I have to create a table in an html file by reading column names from an XML file. I am using java, Wicket, JQuery etc..(No hard coding of column names in html file) any suggestions?
...
So given this XML...
<?xml version="1.0" encoding="UTF-8"?>
<root>
<tree dah="false">
<tree dah="false">
<tree dah="false"/>
<tree dah="false"/>
</tree>
<tree dah="false">
<tree dah="true"/>
<tree dah="false"/>
</tree>
</tree>
</root>
...I need an ...
When specifying XML formats that contain a list of items, there is often a choice of at least two distinct styles. One uses a container element for the list, the other doesn't. As an example: if specifying a document with multiple pages, one could do this:
<document>
<title>...</title>
<pages>
<page>...</page>
<page>...</pag...
I've started programming in Google's Go Language, and the package I'm attempting to write is an API for processing and creating DOCX files (I'm familiar with this topic and thought it would be a good way to learn Go). As DOCX files are primarly a ZIP file with various XML files inside them, I rather need a DOM XML parser. However, I was ...
Hi, all. I'm working on setting up a home screen layout for an Android app in which there is a 4x4 grid of launch icons. My current structure for this is like this:
<TableLayout>
<TableRow>
<LinearLayout android:orientation="vertical">
<ImageButton>
<TextView>
</LinearLayout>
</TableRow>
...
...
...
</Tab...
I have customizable object class I'd like to serialize:
public partial class CustomObject
{
public List<CustomProperty> Properties;
}
public class CustomProperty
{
public object Value;
[XmlAttribute]
public string Name;
}
// some class to be used as a value for CustomPropert...
Hi,
I have existing application which uses Sql server 2005 as a backend. It contains huge records, I need to join tables which contain 50000-70000. In client machine it slowdown.
So, can I improve its performance by using XML as a backend? I have checked that the size of xml file becomes 35MB to 50MB, when I load data. I also need to...
I've been attempting to utilize the plurals resource with Android but have not had any luck.
Here is my resource file for my plurals:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<plurals name="meters">
<item quantity="one">1 meter</item>
<ite...
I am trying to bind a CData element to a text box, in code.
the xml structure is like this:
<Music>
<Category>
<Albums>
<![CDATA[
<AlbumData>
<Album>
<id>A1</id>
<Artist>artist 1</Artist>
</Album>
<Album>
<id>A2</id>
<Artist>artist 2</Artist>
</Album>
</AlbumData>...
i'm using GetElementsByTagName to extract an element from an xml.
GetElementsByTagName is case sensitive - it throws an exception if the node name is 'PARAMS' instead of 'Params'.
i dont want that , can i use a different way in XMLDocument so it wont be case sensitive ?
...
I have tried all the xs:all, xs:choice, and xs:sequence.
Does anybody know how would you validate something like this.
<Menu>
<SubMenu>
<MenuItem .. />
<MenuItem .. />
<MenuItem .. />
</SubMenu>
<MenuItem .. />
<MenuItem .. />
</Menu>
Where,
Under the tags
Submenu, MenuItem can ...