|
|
if you could give me your e mail address i will e mail a couple to you
|
|
|
|
|
how to import and export xml file one machine to another machine in vb.net as well as asp.net
|
|
|
|
|
One way is to send and receive data over the Web Service if you have a running application in the another machine..
Second way could be remoting..I dont know a lot..
|
|
|
|
|
Can i get any help about the convert the xml file to wierless binary xml file.
Thanks for any help.
|
|
|
|
|
I am having trouble doing this. Would appreciate anyone's help on this.
I create a datatable with rows, and would like to generate an XML file everytime a new record gets added.
Is the following code completely off?
DataRow rowParts = dtParts.NewRow();
rowParts["PartID"] = PartID ;
rowParts["Quantity"] = Qty ;
dtParts.Rows.Add (rowParts);
DataSet ds = new DataSet();
ds.Tables.Add("Parts");
ds.WriteXml ("\\Program Files\\CycleInventory\\Inventory.xml") ;
Thanks.
Kevin
|
|
|
|
|
Hi,
I am completely new to xml..I have developed an asp web application. I want to add secutiry features to it..we have the standard ecommerce login app in our company. I have to communicate with that app to pass thro the security.
What I have to do is...the ecom app will send me an xml packet, and my asp app should receive it and generate an response xml packet with session key and send it back to the ecom app.
How should I accompilish this..How should I read xml pac from my asp and how should I generate xml pac and send it to the ecom in asp..how should I generate session key...
Please help.Thanks a lot for your help.
|
|
|
|
|
Is there a way to get the current system date using XSL? I don't merely want to format an existing date, I want to dynamically create a line of output that reads "created on: {current date}" without having to go into my XML file and enter the current date manually.
Todd
|
|
|
|
|
Hi,
I think the only way to do this is to pass in the date and pick it up in your stylesheet as a global parameter using xsl:param .
The way you pass parameters in to the stylesheet is processor specific, so for instance in .Net there is a XsltArgumentList class.
Cheers
Phil Hobgen
barbari.co.uk
Southampton, UK
|
|
|
|
|
Thanks Phil!
You hit the nail right on the head. I was working on a stylesheet transformation for C#'s XML documentation feature as a way to teach myself XSL.
Todd Piltingsrud
kitntodd@charter.net
Farmington, MN USA
|
|
|
|
|
Hi XML buddies,
I had an xml like "<Pu><Name>Joe&&&&&&&</Name><Age>redroom</Age></Pu>"
when i am tried with the code in c# as,
1.
tmp_Message = "<Pu><Name>Joe&&&&&&&&&&&</Name><Age>redroom</Age></Pu>";
XmlDocument xXD = new XmlDocument();
xXD.LoadXml(tmp_Message);
it is throwing error.
2.
can i get any function to check, if a given string is a proper xml or not in C#
please..... help me ..!!!! in solving this error.
regards,
vinu
|
|
|
|
|
hi,
your XML is not even valid! According to XML spec.[^] you have to escape & as "&", or write it only in CDATA or comment.
In .Net Framawork, you can use <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpserverutilityclasshtmlencodetopic1.asp">HttpServerUtility.HtmlEncode</a>[<a target=_blank title='New Window' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpserverutilityclasshtmlencodetopic1.asp">^</a>] from System.Web namespace.
Solution in our case is something like
tmp_Message = System.Web.HttpServerUtility.htmlEncode("Joe&&&&&&&&&&&redroom");
vinu.netguy wrote:
can i get any function to check, if a given string is a proper xml or not in C#
AFAIK you have to write your own.
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hi XML buddies,
I had an xml like "<pu><name>Joe&&&&&&&<age>redroom"
when i am tried with the code in c# as,
1.
tmp_Message = "<pu><name>Joe&&&&&&&&&&&<age>redroom";
XmlDocument xXD = new XmlDocument();
xXD.LoadXml(tmp_Message);
it is throwing error.
2.
can i get any function to check, if a given string is a proper xml or not in C#
please..... help me ..!!!! in solving this error.
regards,
vinu
|
|
|
|
|
I want to convert MS Access database to Oracle & an xml file should b created in the converion process . So the process should b MS Access ---> XMl ---> Oracle. Can some 1 giv the code in vb.net .
|
|
|
|
|
Do exist a better way to encode binary data inside XML than using base64 ?
I need to encode binary data from Visual C++ 6.0 environment.
Thanks for any help
GuimaSun
www.nexsun.com.br
NEXSUN TechZone
|
|
|
|
|
I am having an issue. I need to perform an xslt on an xml document however the document contains xml encoded inside the xml (see sample below). I need to know how to pull out the inner xml so I can parse it from inside an xslt transform. Any help is greatly appreciated.
(code)
<?xml version="1.0" encoding="utf-8" ?>
<Thomson.Financial.T1Link.APIResponse>
<Variable Name="_result" Value="<ALL_RESULTS request="10054"><SEQUENCE id="1"><BETALink_XMLResponse><HeaderInfo RecordCount="1" /><Warnings /><Data><row><BetaLinkUserId>895288</BetaLinkUserId><FirmNo>990</FirmNo><SubNo>990</SubNo><EntityKey>39172390-D9FC-4B4D-9744-8B168F0B3842</EntityKey></row></Data></BETALink_XMLResponse></SEQUENCE></ALL_RESULTS>" Value_Type="System.String" />
<Variable Name="_errors" Value="<ALL_RESULTS request="10054"><SEQUENCE id="1"></SEQUENCE></ALL_RESULTS>" Value_Type="System.String" />
<Variable Name="_warnings" Value="<ALL_RESULTS request="10054"><SEQUENCE id="1"><Warnings /></SEQUENCE></ALL_RESULTS>" Value_Type="System.String" />
</Thomson.Financial.T1Link.APIResponse>
(/code)
|
|
|
|
|
Hi,
As it appears here, your xml is not valid. The "<" character cannot appear within an atribute value, unless you escape it as < Also you have " charaters embedded within an attribute value that uses the same " character to enclose the attribute value, you could escape the inner quotes as "
You need to fix the xml before you can look at the xslt. Are you able to change the xml structure?
If the attribute must contain xml, then you will have to escape the appropriate characters, after that you will be able to use the value-of element to retrieve the escaped xml. At that point, I guess you would need to 'un-escape' it.
Sounds complicated...
Good Luck,
Cheers
Phil Hobgen
barbari.co.uk
Southampton, UK
|
|
|
|
|
Phil (barbari) wrote:
As it appears here, your xml is not valid.
Didn't he write "the document contains xml encoded inside the xml". I'd guess it is escaped. But my English is self-thought ( in computer terminology), so word "encode" has only one meaning to me ...
Phil (barbari) wrote:
You need to fix the xml before you can look at the xslt.
Phil (barbari) wrote:
Sounds complicated...
agree. I think it's plain bad xml structure. I'd move "inner" xml out of attribute. Attributes are not meant to contain hierarchical things... Use them for atomic data seems the best way to me. I'd move that xml to CDATA element inside current variable or what element is was.
other ideas?
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hi,
dnh wrote:
Didn't he write "the document contains xml encoded inside the xml". I'd guess it is escaped. But my English is self-thought ( in computer terminology), so word "encode" has only one meaning to me ...
You're probably right. I must admit to having been somewhat surprised to see xml like that.
dnh wrote:
other ideas?
Not really. If the xml structure can be changed then a CDATA section sounds like just the right approach.
Cheers
Phil Hobgen
barbari.co.uk
Southampton, UK
|
|
|
|
|
|
Hi,
Having a bit more of a think....
If you are working to a schema, and the format of the xml currently in Value is not clearly definable then, if you can change the schema, you could just use an xs:any element (with maxOccurs="unbounded" ) to define the nested xml but place it within the Variable element.
If there is no schema then you could just move the xml as above anyway, with no worries about schema changes.
So there is no need for a CDATA section really.
Of course in either case you may be exchanging this data with someone else, who you may or may not be able to get agreement with
If you can't move the 'encoded' xml, and presuming it is all properly escaped, I think maybe the place to start is to select the Value attribute into a variable . This would contain a tree fragment that you can perform all the usual xslt stuff on. For instance you could set up a template with a match of ALL_RESULTS , you could call the template with apply-templates with a select on the variable you have created. If that doesn't work then perhaps you could pass the variable into a param of the template and process it that way.
I dont think it matters that the source for the variable is text containing < as opposed to < etc, the xslt processor can't tell the diference, I think
Sorry I dont have time to test out the theory - I would be interested to hear how you get this to work..
Cheers
Phil Hobgen
barbari.co.uk
Southampton, UK
|
|
|
|
|
Hi,
I tested some code but have no clue how to communicate XMLDocument (DOM) to C++ DLL.
Basically, I have xml files parsed and encapsulated in XmlDocument class in VB NET.
Aside, I have a C++ DLL that expects Xml Documents. I work in C++ with MSXML2::IXMLDOMDocument2 class. Maybe it is caused by non matching classes (VB versus VC++), but have no clue to handle the problem.
Many thanks for your help,
Alx
--
|
|
|
|
|
Is there a way to put Page Header and Footer in an HTML file. Whie viewing the file it may or may not be displayed, but while printing it should be displayed on each and every page. How to do it. PLease if any suggesstions.
|
|
|
|
|
Hi,
This is really something that you probably need to do using CSS, with an alternate stylesheet - CSS2 has some support for print layout and there are moves to improve on this, but I'm not sure what the current browsers support.
You could do it with XSLT (if your source is XML), and generate different pages for browsing/printing, but this would be v. complex I suspect. You could even use XSLF for generating a PDF for strict layour printing, I would think this can get even more complex. Unless you're really in to XSL ....
I think your best bet is to have a search for articles on css printing.
Cheers
Phil Hobgen
barbari.co.uk
Southampton, UK
|
|
|
|
|
hi there,
I seriously doubt there is CSS support for this. Wait for CSS3 Well, assuming you have similar structure for all your pages (let say it starts with paragraph of CSS class MyP), you can easily specify something like
<br />
@media print {<br />
MyP:before{<br />
content:'header';<br />
position:absolute;<br />
left:0;<br />
top:0;<br />
}<br />
}<br />
For details look at w3c.org...
hope it helps
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|