XDocument中的非空白区域 [英] non white space in XDocument

查看:117
本文介绍了XDocument中的非空白区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下xml,没有明显的空格,顶行位于页面顶部。


I have the following xml, there are no obvious white spaces and the top line is at the top of the page.



























<? xml 版本 = " 1.0 " >
< NewDataSet >
< >
< LevelName > Corporate < / LevelName >
< 度量 > 02/13/2009销售 < / 措施 < font style ="color:blue">>
< Bob > 53,359 < / Bob >
< Tom > 625,514 < / Tom >
< Bill > 1,853,548 < / Bill < font style ="color:blue">>
< Jane > 1,386 < / Jane >
< / >
< / NewDataSet >
<?xml version="1.0"?>  
<NewDataSet> 
  <Table> 
    <LevelName>Corporate</LevelName> 
    <Measures>02/13/2009 Sales</Measures> 
    <Bob>53,359</Bob> 
    <Tom>625,514</Tom> 
    <Bill>1,853,548</Bill> 
    <Jane>1,386</Jane> 
  </Table> 
</NewDataSet>  

推荐答案

你是如何使用XDocument的?您能否发布该代码以便我们查看一下?

感谢一百万
Irinel
How are you using the XDocument? Can you please post that code so we can take a look?

Thanks a million
Irinel


这篇关于XDocument中的非空白区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆