101 Topics

Member Avatar for
Member Avatar for VRamone

Hello, how can I insert a single image on the top of a XSL document? I tried this code below: <xsl:stylesheet version="1.0" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" > <xsl:template match="/"> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <!-- Styles added.... --> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/> <Borders/> …

Member Avatar for rproffitt
0
308
Member Avatar for Rushabh Verma

Hi I have XML something like this : <component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component> in powershell I can load and read through xml like this : [xml] $xmlDocument = Get-Content (#path to xml file) Write-Host $xmlDocument.componet.AttributeA Write-HOst $xmlDocument.componet.Node1.AttributeB Write-HOst $xmlDocument.componet.Node1.Name that gives me the fallow output : 1 AAAA …

0
218
Member Avatar for subha_2
Member Avatar for mldardy

I'm trying to code this in C# so it will output the values for each element in XML. Sample XML: <APIVersion>4.0</APIVersion> <PackageTrackingInfo> <TrackingNumber>123456789</TrackingNumber> <PackageDestinationLocation> <City>Seattle</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </PackageDestinationLocation> <PackageDeliveryDate> <ScheduledDeliveryDate>2004-09-15</ScheduledDeliveryDate> <ReScheduledDeliveryDate>2004-09-18</ReScheduledDeliveryDate> </PackageDeliveryDate> <TrackingEventHistory> <TrackingEventDetail> <EventStatus>LK</EventStatus> <EventReason>AQ</EventReason> <EventDateTime>2004-08-22T11:00:00- 08:00</EventDateTime> <EventLocation> <City>SEATTLE</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </EventLocation> <SignedForByName>JOHN GALT</SignedForByName> </TrackingEventDetail> </PackageTrackingInfo> Here …

Member Avatar for mldardy
0
7K
Member Avatar for spot_1
Member Avatar for Devon_3

This is my xml parsor class: public class DataHandler { static XmlSerializer serializer; public static void Initialize() { serializer = new XmlSerializer( typeof( dataset ) ); serializer.UnknownNode += new XmlNodeEventHandler( serializer_UnknownNode ); serializer.UnknownAttribute += new XmlAttributeEventHandler( serializer_UnknownAttribute ); } public static void ReadXML( string filename ) { FileStream fs = …

Member Avatar for tinstaafl
0
937
Member Avatar for Wyatt_1

Hello Everyone, I am new to c# and am trying to use Open XML to pull data from a SQL server into a spreadsheet. I followed some examples I found online but had to alter them to fit the test scenario I have set up and have run into an …

Member Avatar for tinstaafl
0
1K
Member Avatar for Dankwansere

Hey guys, I've struggling to implement this solution for about a week now. We are using word templates that have inline shapes drawn inside. The inline shapes are used as a place holder to programatically insert image bar codes into the document. Previously we were using Ms.Interop.dll libraries to achieve …

0
116
Member Avatar for coder91
Member Avatar for coder91
0
97
Member Avatar for 111ron222

Hi everybody, I have this XML file,, [code] <users type="array"> <user> <id>12345567</id> <name>Ronsna Stedinberg</name> <screenname>Donnsax</screenname> <location>New York</location> </user> <user> <id>12345568</id> <name>Sonsna Dtedinberg</name> <screenname>Nonnsax</screenname> <location>Las Angeles</location> </user> </users> [/code] and I wonder how can I read all the id's info in the xml? (the <user> </user> is repeat 50 times, so …

Member Avatar for shwetawaghmare
0
918
Member Avatar for fabregas42

<item> <HaberKodu </HaberKodu> <Kategori</Kategori> <Sehir</Sehir> <title</title> <description></description> <pubDate></pubDate> <images> <image> 1 </image> <image> >2 </image> <image> 3 </image> <image> 4 </image> <image> 5 </image> <image> 6 </image> </images> <small_images> <small_image>1 </small_image> <small_image> 2 </small_image> <small_image> 2 </small_image> </small_images> <Aciklamalar> <Aciklamala>1 </Aciklamala> <Aciklamala> 2 </Aciklamala> <Aciklamala> 3 </Aciklamala> </Aciklamalar> <link> </link> …

Member Avatar for JOSheaIV
0
426
Member Avatar for Anitha14

I want to select a node based on an attribute value. I am using C# program to derive on the attribute value which is stored in a variable. The below code returns null. How can I compare the attribute value against a variable? string posSecond = "test"; SelectSingleNode("//viewentries/viewentry[@position=posSecond]"); Thanks!

Member Avatar for Anitha14
0
651
Member Avatar for Varunkrishna

Hi all I have a simple login form with Username and password as fields when the user clicks the login I wish to check the xml whether the username and password is present in the xml. How do I do this, could someone please give me some ideas ? My …

Member Avatar for cgeier
0
1K
Member Avatar for M.Waqas Aslam

Hello! I am working on updation of an old asp classic website. I have experience in Asp.net but dont know much about asp classic. I want to show my query results in xml format. I am getting data in my record set but unable to convert it into xml and …

Member Avatar for JorgeM
0
320
Member Avatar for weathermans

Hello I'm looking for some help on how to get a XML value which would be one word. Then take that value and output it in a C# or C++ program. Using windows 7 and visual studio 2010. I have Novice programming knowledge. Thanks for help.

0
151
Member Avatar for danimischiu

Hy all, Does anybody know a good method to edit data from office xml spreadsheet format in C#? I've found a way to get data from it using OpenXML but I'm stuck at saving the changes made back in the file. I've attached my source file here..

Member Avatar for gusano79
0
103
Member Avatar for MasterHacker110

I have this xml file <?xml version="1.0"?> <xml> <accounts> <user name="User123" cellphone="000000000123" email="n/a" balance="123.12" pin="123" accNumber="123"/> <user name="User456" cellphone="000000000456" email="445@email.com" balance="456.45" pin="456" accNumber="456"/> </accounts> </xml This file is part of an ATM's database, containing the user's details. I would like to change a spesific value. Say "User123" is login at …

Member Avatar for tinstaafl
0
2K
Member Avatar for anisha.silva

Hi, I am getting a xml object from as a web response for getting data from a web page the content is as : " <bookshare>\n <version>4.1.1</version>\n <messages/>\n <book>\n <metadata>\n <author>David Flanagan</author>\n <available-to-download>0</available-to-download>\n <bookshare-id>21385</bookshare-id>\n <brief-synopsis>The 1.4 release of Java 2 Standard edition brings a load of new features - and …

Member Avatar for anisha.silva
0
333
Member Avatar for sundog1

Hi Guys.. Hoping you can help here.. I'm dabbling with Linq as I'm wanting to pass a Node Value from the XML file into the Connection String. Currently my Code seems to be working and holding the Value in the System.(Code Below:)(Screenshot attached also) XDocument testXML = XDocument.Load("C:\\twDB.xml"); var DataBases …

Member Avatar for Ketsuekiame
0
256
Member Avatar for bbt2d

I am new to c# and I am working with a xml file. I have appended to an existing sample file, but the formatting is off and some of the xml elements are missing. What I am working toward is appending to it 10 times just changing the number for …

Member Avatar for tinstaafl
0
249
Member Avatar for bhagawatshinde

Hi, I am new in asp.net. i have an task to read xml file from server folder and insert these values to sqlserver 2005 database. how i can do this. thanks in advance.......

Member Avatar for softwareskill
0
893
Member Avatar for rexdon

//Give me an example for Serialising Multidimensional array in c sharp. //While searching in net i found this code snippet [XmlIgnore] public char[,] Data; [XmlElement("Data")] [EditorBrowsable(EditorBrowsableState.Never)] public char[][] XmlData { get { /* copy contents of Data into a jagged array */ } set { /* copy contents of jagged …

Member Avatar for deceptikon
0
995
Member Avatar for SpyrosMet

Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for AquaNut

Hi Everyone, I am trying to read in a block of xml using the following code, but it always jumps over the foreach loop: XDocument doc = XDocument.Load(sourceFile); XElement root = XElement.Load(sourceFile); var DataRecords = doc.Elements("DATA_RECORD"); foreach (var dr in DataRecords) { //build up the values we're interested in string …

Member Avatar for nmaillet
0
356
Member Avatar for opticaltim

I'm creating a XML-viewer which should be able to read **every** XML file and put it in a treeview. My goal is to create a XMLViewer control, an user should be able to change certain routines in his own implementations. I provide default implementations that offer a basic functionality so …

Member Avatar for tinstaafl
0
1K
Member Avatar for nemoOooZ

Hi all, I have two xml files and I need to export the result of applying a left outer join between them into a list var result = from file1 in XDocument.Load(f1).Descendants("Contract") join file2 in XDocument.Load(f2).Descendants("Profile") on (file1.Element("CustomerAccID") != null ? file1.Element("CustomerAccID").Value : "") equals (file2.Element("Id") != null ? file2.Element("Id").Value …

0
64
Member Avatar for israruval007

Ok let say i have the following xml file <Users> <User> <Name>David</Name> <Attempts> <Place>Paris</Paris <Date>3/29/2012</Date> <Duration>50 seconds</Duration> <Distance>100</Distance> </Attempts> <Attempts> <Place>New York</Paris <Date>7/28/2012</Date> <Duration>30 seconds</Duration> <Distance>100</Distance> </Attempts> <Attempts> <Place>Paris</Paris <Date>8/19/2012</Date> <Duration>70 seconds</Duration> <Distance>60</Distance> </Attempts> <Attempts> <Place>New York</Paris <Date>9/29/2012</Date> <Duration>60 seconds</Duration> <Distance>200</Distance> </Attempts> </User> <User> <Name>Lenny</Name> <Attempts> <Place>Paris</Paris <Date>9/29/2012</Date> <Duration>51 seconds</Duration> …

Member Avatar for ChrisHunter
0
258
Member Avatar for riahc3
Member Avatar for pritaeas
0
63
Member Avatar for israruval007

Ok lets say i have the following xml file <Users> <User> <Name>Jonathan</Name> <Tests> </Tests> </User> <User> <Name>John</Name> <Tests> </Tests> </User> </Users> Im writing a C# program, and what I want is to search for a specific name(eg Jonathan) and add elements and values to that specific tag in my xml …

Member Avatar for israruval007
0
400
Member Avatar for jonc

Hi, I've got an XML file that I need to make changes to before creating an output XML file. I've got an XSLT Transform file which does part of the job fine, but I'm needing to go one step further which is where I'm struggling. In C# I'm using an …

Member Avatar for Mike Askew
0
3K

The End.