Click here to Skip to main content
15,917,862 members
Home / Discussions / C#
   

C#

 
AnswerRe: telegram client api to download video files and/or telegram video link Pin
OriginalGriff28-May-24 18:19
mveOriginalGriff28-May-24 18:19 
GeneralAD Sync Manager - a free tool to easily monitor and manage your AD to Azure AD sync Pin
TheITApprentice21-May-24 18:29
TheITApprentice21-May-24 18:29 
GeneralRe: AD Sync Manager - a free tool to easily monitor and manage your AD to Azure AD sync Pin
OriginalGriff21-May-24 18:30
mveOriginalGriff21-May-24 18:30 
QuestionHow to convert XML to text file Pin
Member 1211605220-May-24 19:37
Member 1211605220-May-24 19:37 
AnswerRe: How to convert XML to text file Pin
Richard Deeming20-May-24 21:32
mveRichard Deeming20-May-24 21:32 
AnswerRe: How to convert XML to text file Pin
trønderen21-May-24 4:43
trønderen21-May-24 4:43 
AnswerRe: How to convert XML to text file Pin
jschell21-May-24 12:27
jschell21-May-24 12:27 
AnswerRe: How to convert XML to text file Pin
OriginalGriff21-May-24 19:02
mveOriginalGriff21-May-24 19:02 
To add to what the others say, you need to sit down and work out exactly what you expect to generate form your XML data.
The reason being that XML is a text-based hierarchically structured data format, and it can be all in a single line: newlines (or any other whitespace) are not required by the XML specification, and "individual items" in XML can span multiple lines of text without any change in the data it encapsulates or an entire array of objects can occupy a single line of text - that's problem number one!

The second problem is that the data contained in the XML itself doesn't "lend itself" to a flat file output - which is what an unformatted text file contains.
If you look at a "basic XML" file like this example: W3Schools CD Catalog[^] you can see that what it contains isn't readily useful as a text file unless you actually convert that to a formatted file of some form. Just stripp[ing out the XML stuff doesN't give you any useful data:
Empire BurlesqueBob DylanUSAColumbia10.901985Hide your heartBonnie TylerUKCBS
Records9.901988Greatest HitsDolly PartonUSARCA9.901982Still got the bluesGary
MooreUKVirgin records10.201990ErosEros RamazzottiEUBMG9.901997One night onlyBee
GeesUKPolydor10.901998Sylvias MotherDr.HookUKCBS8.101973Maggie MayRod
StewartUKPickwick8.501990RomanzaAndrea BocelliEUPolydor10.801996When a man loves a
womanPercy SledgeUSAAtlantic8.701987Black angelSavage RoseEUMega10.9019951999 Grammy
NomineesManyUSAGrammy10.201999For the good timesKenny RogersUKMucik Master8.701995Big
Willie styleWill SmithUSAColumbia9.901997Tupelo HoneyVan
MorrisonUKPolydor8.201971SoulsvilleJorn HoelNorwayWEA7.901996The very best
ofCatStevensUKIsland8.901990StopSam BrownUKA and M8.901988Bridge of
SpiesT'PauUKSiren7.901987Private DancerTina TurnerUKCapitol8.901983Midt om nattenKim
LarsenEUMedley7.801983Pavarotti Gala ConcertLuciano PavarottiUKDECCA9.901991The dock of
the bayOtis ReddingUSAStax Records7.901968Picture bookSimply RedEUElektra7.201985RedThe
CommunardsUKLondon7.801987Unchain my heartJoe CockerUSAEMI8.201987
(I manually added the line breaks to prevent that showing as a single very long line!)

So you need to work out what is in the XML that you are interested in, and how you will "present" that in your resulting file - otherwise it's just a waste of your time and effort!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

QuestionWhere to hand over the instance of my plugin dll class to another class Pin
AtaChris18-May-24 8:34
AtaChris18-May-24 8:34 
AnswerRe: Where to hand over the instance of my plugin dll class to another class Pin
OriginalGriff18-May-24 20:20
mveOriginalGriff18-May-24 20:20 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
Dave Kreskowiak19-May-24 5:02
mveDave Kreskowiak19-May-24 5:02 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
OriginalGriff19-May-24 5:21
mveOriginalGriff19-May-24 5:21 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
Dave Kreskowiak19-May-24 5:31
mveDave Kreskowiak19-May-24 5:31 
QuestionFind email-enabled public folders exclusively using "Microsoft.Office.Interop.Outlook" Pin
temuco14-May-24 4:25
professionaltemuco14-May-24 4:25 
QuestionI need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 4:19
professionalglennPattonWork39-May-24 4:19 
AnswerRe: I need to convert a the string of a Text box to a Value Pin
Tony Hill9-May-24 4:41
professionalTony Hill9-May-24 4:41 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Richard Deeming9-May-24 4:43
mveRichard Deeming9-May-24 4:43 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Tony Hill9-May-24 4:47
professionalTony Hill9-May-24 4:47 
AnswerRe: I need to convert a the string of a Text box to a Value Pin
Richard Deeming9-May-24 4:42
mveRichard Deeming9-May-24 4:42 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 5:03
professionalglennPattonWork39-May-24 5:03 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Richard MacCutchan9-May-24 6:02
mveRichard MacCutchan9-May-24 6:02 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 6:48
professionalglennPattonWork39-May-24 6:48 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Richard MacCutchan9-May-24 6:56
mveRichard MacCutchan9-May-24 6:56 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 7:06
professionalglennPattonWork39-May-24 7:06 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
jeron19-May-24 6:58
jeron19-May-24 6:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.