xmlconfig.pas

来自「Delphi XML & XPATH源代码」· PAS 代码 · 共 25 行

PAS
25
字号
unit XMLConfig;

{
  An XML configuration properties handler.
  Requires MSXML v3 package from Microsoft.
  Reads an XML properties file, returning the property name and values
  in a string list. Property names are the accumulated element names
  (ignoring the top level element) separated by periods.
  Values are the text content of the elements.

  For example:
  <?xml version="1.0"?>
  <properties>
    <sub1>
      <prop1>abcdef</prop1>
      <prop2>123456</prop2>
    </sub1>
  </properties>

  becomes

  sub1.prop1=abcdef
  sub1.prop2=123456

  Copyright 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?