|
Hi friends,
I have an XML file, and it has XSL file that is applied for formatting data contained in xml. Now I WANT TO SAVE THE XML FILE AS AN HTML FILE, but the content and styles should not be lost. Thats what my problem is.
when i m saving the xml file as an html, its all styles are lost, and it saves only plain text.
So please if u have any solution for that, pls provide me that, as soon as possible.
Thanks in advance.
|
|
|
|
|
xml, html, and xsl files are only plain text. It sounds to me like what you mean is, you used newlines to generate breaks in your text file and you need to change your XSL to instead add br tags, so you emit HTML.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
I have a group called GroupX and it contains several brands. Those brands contain products and those products have two values: their price and their product number. Now I want to store this in a XML file, and I know that I have to use System.XML but I just can't find out on how to store, read and modify this data using XML. I've searched the internet, but didn't find what I was looking for.. I am using Visual Basic with Visual Studio 2005.
Please help me out,
--Zaegra--
|
|
|
|
|
Is this in a database or do you want to create the xmlDocument in Visual Basic from a text file or something?
|
|
|
|
|
Zaegra wrote: I've searched the internet
I find that hard to believe.
There is a myriad of ways to store XML, the easiest is to use a stringbuilder to build your XML by hand, but that is more error prone than using XMLDocument or the XMLStreamWriter ( not sure what that is called ). XMLDocument is a standard DOM implimentation, it's how you would read/modify an XML document.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I try to implement WSE and Custom UsernameTokenManager (http://msdn2.microsoft.com/en-us/library/aa480575.aspx#wss_ch3_impdirectauth_wse30_topic6) to connect todatabase
I use in my webconfig:
<connectionStrings>
<add name="MySqlConnection" connectionString="Data Source=MySqlServer;Initial Catalog=aspnetdb;Integrated Security=SSPI;" />
</connectionStrings>
<system.web>
...
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MySqlConnection"
applicationName="MyApplication"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed" />
</providers>
</membership>
But when i test my webservice i have this message:
Server unavailable, please try later
ConnectionString is ok.
Thanks
|
|
|
|
|
Hai all,
i had on gateway.xml file,like
<<?xml version="1.0" encoding="utf-8" ?><br="" mode="hold">
<GateWay name="UserID">
<title>Gate</title>
<Collection>
<struserid>zoo
<strpwd >test </strpwd >
<strapiID >301</strapiID >
<strurl >http://sms.xyz.com/sen.asp?</strurl >
</Collection>
>
and i need to assign strUserID variable in .net,and i had to assign the
(strUserID =zoo) from the xml file....
Thanks in advance
Thanks
Subbu.
|
|
|
|
|
Look for some tutorial or example articles on working with the XML DOM. There are millions of them. There are even small samples in MSDN documentation for the <code>System.XML .XMLDocument class. You might find such articles here on CodeProject or TopXML or www.w3schools.com or on MSDN.
led mike
|
|
|
|
|
Hi everyone,
I am developing a website in the name of www.seopageranktips.com
I am working for RSS feed in my website. I have several links in my site.How to prepare sitemap.xml file? so that my site will be craweled better. Pls help me.
---Jegastar D.
|
|
|
|
|
I haven't had to do this in the last year, but unless things have changed each search engine has different requirements for sitemap files. You will need to visit each of the search engines separately and look at the schema for their sitemaps and use that as a guide.
|
|
|
|
|
Hi-
Does anyone have any experience with integration of the UPS (United Parcel Service) Online Ship Tool, Address Verification, and Label printing into a .net c# application. We are in the middle of this project and could use any help offered. Thanks
|
|
|
|
|
hi..
basically i want UPS web service which work on international level..
the code needed in asp.net 2.0
hi .. in UPS web service when i post 6 digit zip code or like any character than it is not accepted by UPS web service app. version 1.2 it gives error like " UPS only accept 5 digit zip code"
so u have any idea about UPS web service which works on all zip codes..? i want code in ASP.NET . so if u have than please send me..
|
|
|
|
|
Hi all,
I want to build an application in which I have an XML files which contains the connection string and credentials to connect to multiple databases. I want to connect to these databases and run a stored procedure on these database and close the connection. Can anyone guide how to proceed on this. I want to have front end which will fetch the data from the XML file for database connection, make the connection, run the stored procedure and Close the connection. Any Idea How can this be implemented.
Sankalp
|
|
|
|
|
Just use XPath to select the nodes containing your connection strings, then use them to connect. Which bit are you stuck on ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
sir ,
i have a que is that how to acess xml in database
ragini
|
|
|
|
|
HI am trying to Serialize( cos requested by application )
a class using XML Attributes.
Xml file should be like the one written below. I tried using XML
Serialization Attributes but I cannot find any solution.
The fact is that for each item name is an attribute for the class
variable, but I am not able to put the value without adding an extra tag.
Have you some idea about that?
OUPUT on FILE expected
<MyData>
<variable name="FirstVar">value
<variable name="FirstVar">value1</variable>
<variable name="SecondVar">value2</variable>
<variable name="ThirdVar">value3</variable>
</MyData>
MY CLASS that doesn't work
class variable
{
[XmlAttribute]
String name;
}
class MyData
{
[XmlElement]
variable[] list;
}
|
|
|
|
|
how to write xml root element attribute string in .net(C#).like
anybody know plz reply me
Rajendran.AL
|
|
|
|
|
Hi,
I have to parse an XML file with a .NET XmlTextReader. The Read() method of this class moves from the current node to the next one. However, if it comes accross a node it can't read (ie: malformed/corrupted XML node), it cannot skip it and move to the next node: the program is stuck.
Is there anyway to deal with this problem? Or is there a less restrictive .NET XML parser out there?
(basically the parser is bugged at a node like <name foo="bar" ,foo2="bar2"> as the comma is not a valid character to start a new attribute)
Thank you!
|
|
|
|
|
hi in my application i have the xml file ( ImageType.xml ). it contains some string values.
<root>
…
<supporteddatatypelist>
<imagedatatype value="XAImage" value_type="string">
<imagedatatype value="CTImage" value_type="string">
<imagedatatype value="USMultiFrameImage" value_type="string">
<imagedatatype value="USImage" value_type="string">
<imagedatatype value="SCImage" value_type="string">
<imagedatatype value="TSB_RF" value_type="string">
<imagedatatype value="MRImage" value_type="string">
like this...
i want to get the XAImage,MRImage ,CTImage etc values to string array... i need to get the value itself..
anybody help me for this issue.
|
|
|
|
|
TopXML and www.w3schools.com both contain tutorials and references for working with XML. There is also small amounts of example code in the MSDN documentation for the classes in the System.Xml namespace.
led mike
|
|
|
|
|
I want to write a Java component to populate a table(Dojo grid) from a XML which will valid through a XML Schema (The XSD file ).That means I am having the .xsd file and have to create a table structure corresponding to the XML structure (That is .xsd file ).
Can anybody help me on giving some idea how to convert a .xsd file to its corresponding table structure .
|
|
|
|
|
Hi,
I am trying to construct a WordML document client-side in Javascript, from an XML file containing my data (obviously) and a XSLT file on the server. My code is below. How do I 'send' the generated WordML document to the browser so that it can be opened in Word?
Thanks in advance, Chris
var xslt = new ActiveXObject("Msxml2.XSLTemplate." + IA_getMSXMLVersionNumber());
var xsldoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument." + IA_getMSXMLVersionNumber());
var xslproc;
xsldoc.async = false;
xsldoc.load(XSL_URL + "/InstReport.xslt");
if (xsldoc.parseError.errorCode != 0)
{
var myErr = xsldoc.parseError;
alert("Error loading XSL: " + myErr.reason);
}
else
{
var xmlDoc;
xslt.stylesheet = xsldoc;
xslproc = xslt.createProcessor();
xslproc.input = xmlDoc;
xslproc.transform();
}
I should say that it errors whenever I reference xslproc.output
|
|
|
|
|
I am am getting a result back from the web service as an XML. When ever a new user will be in the site these web services will be called.
I have two options to parse the XML:
1. Parse and get the required nodes using XPATH.
2. Get every thing in a data set and fetch it with a reference of data table and column name.
I need to just pick one single node each time parse the XML. Please suggest me which approach I should use.
I have gone through the below article and it says:
------------8<--------------8<-----------------------------------
You should not use a dataset if:
* You are using Web Forms in your application because Web Forms and their controls are recreated each time a page is requested by the client. Thus, creating, filling and destroying a dataset each time will be inefficient unless you plan to cache it between roundtrips.
------------8<--------------8<-----------------------------------
http://www.codeproject.com/KB/cpp/dataset.aspx[^]
Please advice
Regards,
Pavas
|
|
|
|
|
|
Hence I should use the third option provided by you.
Thanks
Regards,
Pavas
|
|
|
|