当前位置: 首页 > news >正文

网站设计的建议武汉seo公司哪家专业

网站设计的建议,武汉seo公司哪家专业,dwcs5怎么做动态网站,网站开发所需要的技术XmlReaderSettings.IgnoreWhitespace 属性 如果忽略空白,则为 true;否则为 false。 默认值为 false。 示例 下面创建一个设置对象,该对象可用于构造一个读取器,该读取器去除处理指令、注释和微不足道的空白。 StreamReader tex…

XmlReaderSettings.IgnoreWhitespace 属性

如果忽略空白,则为 true;否则为 false。 默认值为 false。

示例

下面创建一个设置对象,该对象可用于构造一个读取器,该读取器去除处理指令、注释和微不足道的空白。

    StreamReader textreader = new StreamReader(filterXML);XmlReader reader = default(XmlReader);reader = XmlReader.Create(textreader, new XmlReaderSettings{CloseInput = true,ConformanceLevel = ConformanceLevel.Document,DtdProcessing = DtdProcessing.Ignore,IgnoreComments = true,IgnoreProcessingInstructions = false,IgnoreWhitespace = true,ValidationType = ValidationType.None});

注解

不被视为重要的空格包括空格、制表符和空白行,用于设置标记,以便提高可读性。 其中一个示例是元素内容中的空白。
此属性设置不会影响混合内容模式下标记之间的空白,也不会影响在属性范围内 xml:space=‘preserve’ 发生的空白。

<idPkg:Story xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="17.0"><Story Self="u236" AppliedTOCStyle="n" UserText="true" IsEndnoteStory="false" TrackChanges="false" StoryTitle="$ID/" AppliedNamedGrid="n"><StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection" /><InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" /><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/10 Notes Text"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><Properties><Leading type="unit">13.5</Leading><AppliedFont type="object">CompositeFont/~MHeHK-B+TimLTS-B</AppliedFont></Properties><Content> </Content></CharacterStyleRange></ParagraphStyleRange></Story>
</idPkg:Story>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" 
exclude-result-prefixes="msxsl"  xmlns:space="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"><xsl:output method="xml" indent="yes"/><!-- This is an identity template - it copies everythingthat doesn't match another template --><xsl:template match="@* | node()"><xsl:copy><xsl:apply-templates select="@* | node()"/></xsl:copy></xsl:template><!-- This is the "other template". It says to use your BBB-DDD elementsinstead of the AAA element --><xsl:template match="Content[text()=' ']"><xsl:element name="Content"><xsl:attribute name="xml:space">preserve</xsl:attribute><xsl:value-of select="."></xsl:value-of></xsl:element></xsl:template>
</xsl:stylesheet>

将上面的xml通过xsl转化成带有xml:space=‘preserve’ 的空值元素,新的xml

<Content xml:space="preserve"> </Content>
private string TransformXml(string xmlPath)
{string transformedXmlPath = System.IO.Path.GetTempFileName();XslCompiledTransform xslt = new XslCompiledTransform();string xsltFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "filterSpaceXslt.xslt");xslt.Load(xsltFilePath);xslt.Transform(xmlPath, transformedXmlPath);return transformedXmlPath;
}
http://www.hkea.cn/news/872428/

相关文章:

  • 网站开发人员需要具备的能力电脑培训班多少费用
  • discuz集成wordpressseo的概念是什么
  • 子网站如何做网站营销方案模板
  • dreamweaver做的网站电商培训班一般多少钱
  • 国外做科研的网站东莞网站设计公司排名
  • 亿唐网不做网站做品牌原因seo网站诊断报告
  • 宝鸡网站建设东东怎么推广软件让别人下载
  • 21dove谁做的的网站百度一下首页设为主页
  • 猪八戒网站建设推广平台排名前十名
  • 广西建设质监站官方网站站长工具seo综合查询可以访问
  • 通用搭建网站教程优化营商环境的意义
  • 网站中加入地图怎样优化网站排名
  • 网站如何被搜索引擎收录地推推广平台
  • 池州做网站公司游戏搜索风云榜
  • 东丽区做网站网站查询平台
  • wordpress什么主题好用seo优化范畴
  • 局域网端口映射做网站西安竞价托管代运营
  • 重庆网站建设设计公司信息ip网站查询服务器
  • 网站积分的作用seo搜索引擎优化就业前景
  • 珠海网站品牌设计公司简介最新国内新闻重大事件
  • 广东专业网站客服软件定制站长统计app下载大全
  • 广东网站建设公司排名磁力帝
  • 胶南网站建设哪家好成都电脑培训班零基础
  • 集团网站建设哪家好网上推广怎么弄?
  • dz网站建设器最近有新病毒出现吗
  • 个人网站制作说明香港旺道旺国际集团
  • 监控做直播网站免费网站seo
  • 网站建设洪塔网站搜索优化排名
  • 专业做设计师品牌网站深圳百度总部
  • 网站兼容工具seo关键词排名优化教程