|
Use an XmlDocument to create a new record, and then append it to the shrpt_site node.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Is it possible to call a comand line program from within an Xml File Preprocessor. I have a connection string that is encrypted in a settings file and i want to decrypt it before assigning it to the conString value
<configuration>
<appSettings>
<!-- ifdef ${_xml_preprocess} -->
<!-- <add key="conString" value="${connectionStringWithPassowrd}"/> -->
<!-- else -->
<add key="conString" value="connection string"/>
<!-- endif -->
</appSettings>
</configuration>
|
|
|
|
|
No. You should write code to decrypt it in a class and use that to access the values.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi.
How can I group values in "Type" ( xmldatasource - fill dropdownlist with distinct values ) ?
XSL:
<?xml version="1.0"?>
<xsl:transform
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
>
<xsl:strip-space elements="*"/>
<xsl:output method="xml"
omit-xml-declaration="yes"
indent="yes"
standalone="yes" />
<xsl:template match="/">
<xsl:for-each select="dataroot">
<xsl:element name="dataroot">
<xsl:for-each select="Table_A">
<xsl:element name="Table_A">
<xsl:attribute name="Type">
<xsl:value-of select="Type"/>
</xsl:attribute>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:for-each>
</xsl:template>
</xsl:transform>
XML:
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2009-10-21T09:21:31">
<Table_A>
<ID_I>100085004</ID_I>
<Type>GPS</Type>
<Value>0</Value>
<SDD_Date>1829-06-12T00:00:00</SDD_Date>
</Table_A>
</dataroot>
Thanks in advance !!
modified on Friday, October 23, 2009 3:43 AM
|
|
|
|
|
Clas,
can you use XSLT 2.0 instead 1.0? (If you can control the XSLT engine you use, then switch to SAXON by M. Kaye, from the web-site, you can also download all you need for .NET reuse.)
If so, <xsl:key ...=""> and the so-called Muenchian method is your friend.
All you need to know you will find here:
http://www.jenitennison.com/xslt/grouping/muenchian.html[^]
Best regards,
Stefan
|
|
|
|
|
Hello community,
i am new user and its my first question that i seek an answer or some sort of answer that will help me with my work so please don't judge me
My problem is that i made html page and on that page i have form in witch i insert email/password.I want those informations to be inserted into Xml file file witch i already have in my project.I want this problem to be solved with javascript or jquery.(server environment not client if that is possible).
So if anyone is interested in solving my problem it will be from big help to me.
Thanks.
modified on Monday, October 19, 2009 8:16 AM
|
|
|
|
|
live4u wrote: I want this problem to be solved with javascript or jquery.(server environment not client if that is possible).
Um... I know you're new and all, but you just asked a dumb question. You want to use client side code, but you want it to run on the server ? How does that make sense ?
To manipulate XML, there's almost certainly a DOM implimentation in the framework you're using, but if you want specific code, the ASP.NET forum for ASP.NET or web dev for any other web platform, is the best place to ask this. Although it relates to XML, it's hard to know how to answer based on what you said. XmlDocument class if you're using .NET, otherwise I don't know. But, you can't use javascript or jquery ( which is just a javascript library, it's not a language ) on the server, nor should you want to.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi am a LAMP developer and our team are about to embark on a version 2 of a web based application, with an upgrade of client tier to AJAX. For client-server communication we have narrowed down the options to XML and JSON was wondering what are the benefits and drawbacks of both. Right now am leaning towards JSON?
Regards
|
|
|
|
|
As opposed to embedding an image within a Microsoft Word 2007 document, I have been looking for the possibility of using XML to link to another location on the network where the image files would be stored locally.
Is this possible? If so, would anyone be able to help by pointing me in the direction of learning more knowledge on this subject?
Any and all help is greatly appreciated
jsquires
modified on Friday, October 16, 2009 10:57 AM
|
|
|
|
|
HI,
I HAVE A XML FILE WITH HYPHEN(-) IN SOME ITS ELEMENTS FOR EXAMPLE
<NAME>
<FIRST-NAME>JOHN </FIRST-NAME>
<LAST-NAME>MILLER </LAST-NAME>
<AGE>25 <AGE>
</NAME>
I ALSO HAVE XSD FILE VALIDATING THIS XML FILE AND WHEN I BULKINSERT IT IN MY DATABASE ELEMENT NAMES WITH
HYPHEN ARE NOT INSERTING <FIRST-NAME>JOHN </FIRST-NAME> , <LAST-NAME>MILLER </LAST-NAME>
WHERE AS NON-HYPHEN ELEMENTS <AGE>25 <AGE> INSERTED FINE.
HOW CAN I VALIDTE THE HYPHENATED ELEMENTS WITH MY XSD AND THEN INSERT INTO DATABASE. PLS HELP
sai krishna
|
|
|
|
|
The validation is obviously not a problem - it's that your database doesn't allow/have fields with hyphens? How are you inserting into the database?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
HI STUART DOOTSON , THANKS FOR REPLYING
MY DATABASE IS SQLSERVER AND I AM BULK INSERTING MY XML FILE USING SQLXML3.0 FRAMEWORK . IHAVE A VB SCRIPT LIKE
OBJECT.Execute "MYSCHEMA.XSD" , "MYXMLFILE.xml"
AM ASLO MAPPING MY XML TAGS WITH SQLSERVER TABLE NAME IN MY XSD FILE
<xsd:element name="FIRST-NAME" sql:relation="FIRSTNAME" >
<xsd:complexType>
....................
..........................
</xsd:complexType>
</xsd:element>
sai krishna
|
|
|
|
|
hi,
i don't know if i'm posting at the right forum ....so plz be merciful
i'm not familiar with the SOAP protocol or with the web services....i searched ggogle did'nt foundsomething useful on how to work with web services and implement it in my desktop application or my web application ...so any links would be appreciated
|
|
|
|
|
roba alchab wrote: i'm not familiar with the SOAP protocol or with the web services....i searched ggogle did'nt foundsomething useful on
Are you sure you searched? What about all of these[^]?
|
|
|
|
|
Hi,
I am new to xml,i have create a 3 textbox using xml,and i want to pass the user inputvalue to php variable and insert into db...
how to do this...
<samplefield1fromgroup4 translate="label">
<label>User Name</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</samplefield1fromgroup4>
need help....
|
|
|
|
|
Hi,
please let me know wat are teh requirements required to develop a gaming project in XML....i mean along with XML what other technologies can be used.
|
|
|
|
|
|
XML is of no intrinsic value to writing games. It may be used as a way to store data, but there will NEVER be a book or article called 'using XML to write games'. XML is not even a language.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I am trying to use the tokenize function and I have tried many different namespaces but was unsuccessful. With the Xalan namespace, a call to function-available('xalan:tokenize') returns false.
With EXSLT, I get the error: Variable 'ctxN' has not been declared.
What does that mean? This is what I have for my stylesheet element:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br />
xmlns:msxsl="urn:schemas-microsoft-com:xslt"<br />
xmlns:str="http://exslt.org/strings" exclude-result-prefixes="str"><br />
<xsl:include href="str.tokenize.msxsl.xsl"/>
And then, when I switch to str.tokenize.template.xsl, I get the error:
Cannot find the script or external object that implements prefix 'http://exslt.org/strings'
What am I doing wrong? I am using Microsoft Visual Studio 2008 .NET. Any ideas?
Thanks!
|
|
|
|
|
Hi all...i'm new to xml...i'm displaying values from xml file to html using the below code...
HTML FILE
<form id="form1" runat="server">
<div>
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="XmlDataSource1">
<DataBindings>
<asp:TreeNodeBinding DataMember="Product" ValueField="ID" TextField="Name"></asp:TreeNodeBinding>
<asp:TreeNodeBinding DataMember="Desc" ValueField="Value" TextField="Value"></asp:TreeNodeBinding>
</DataBindings>
</asp:TreeView>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XML/XmlFile_1.xml">
</asp:XmlDataSource>
</div>
</form>
XML FILE:
<?xml version="1.0" encoding="utf-8" ?>
<!-- This file represents a fragment of Product
store inventory database -->
<Products>
<Product ID="1" Name="a" Price="5">
<Desc Value="5 boxes x 50 Bags"/>
</Product>
<Product ID="2" Name="b" Price="10">
<Desc Value="24oz bottles"/>
</Product>
<Product ID="3" Name="c" Price="15">
<Desc Value="40 kg pkgs"/>
</Product>
</Products>
Now i wanna use a text box in HTML and i need to store them in XML....how can i do that....
modified on Friday, October 9, 2009 11:39 PM
|
|
|
|
|
Did you look at any of this before or after you posted it?
|
|
|
|
|
i searched, but i didt get anything...
|
|
|
|
|
hey all.
I have this code
<albume1>
<file>Mortal.mp3</file>
<file>Seek.mp3</file>
</albume1>
and need function which is written in C#.NET
to do these things
gets name of file as parameter/
void RemoveLine(string name)
{
searchs in albume1 the name lets take for example "Seek.mp3"
found one delete the whole line
<file>Seek.mp3</file>
}
so the final result/save of XML file would be :
<albume1>
<file>Mortal.mp3</file>
</albume1>
I tried with InnerText attribute but InnerText takes whole Textes which appear among the two tags
thanks
modified on Tuesday, October 6, 2009 3:54 PM
|
|
|
|
|
First of all, i would say that you have to remove a node not it's innertext. So you need to find the node.
Second thing, IS all the album node is named as albume1 or is it the name of the Alubum?
anyways you can remove the child node in this way.
XmlDocument _xmlDoc = new XmlDocument();
if (System.IO.File.Exists(xmlDbFilepath))
{
_xmlDoc.Load(xmlDbFilepath);
}
XmlNode albumNode = _xmlDoc.SelectSingleNode("/root/album");
if (albumNode != null)
{
foreach (XmlNode node in albumNode.ChildNodes)
{
if (node.InnerText.trim() == fileName)
{
albumNode.RemoveChild(node);
}
}
}
I hope it will help you.
|
|
|
|