易截截图软件、单文件、免安装、纯绿色、仅160KB

xml,jsp,dtd,xsd 提示信息

进入MyEclipse6.X下
修改:eclipse.ini 文件
-Duser.language=en
改成
-Duser.language=zh
弹出提示:Ctrl+"/"
dtd 命名空间的提示信息
window-->Preference-->xml-->XML Catalog-->add
Location :sql-map-2.dtd
key type :pubic ID
key:-//ibatis.apache.org//DTD SQL Map 2.0//EN (XML文件命名空间)
弹出提示:Ctrl+Space
xsd  命名空间的提示信息
window-->Preference-->xml-->XML Catalog-->add
Location :spring-beans2.0.xsd
key type :Schema Location
key:http://www.springframework.org/schema/beans/spring-beans2.0.xsd
弹出提示:Ctrl+"/"


相关文档:

.net 程序发布后xml文件找不到的两种解决方法

自己做项目需要用智能客户端发布,我遇到了个问题就是程序中的xml文件在发布后找不到了。经过在网上查询和自己的试验发现这两个方法都可以解决这个问题。
方法1
    右键winUI项目,发布-〉应用程序文件....->选择xml文件-〉发布状态改为“数据文件(自动)”
   
 &nb ......

DTD,XML Schema和Relax NG的比较及相互转化!

比较:
1. DTD
a. 最早的XML Contraint
b. 由W3C定义
C. 非常简单
2. XML Schema
a. 目前应用最广的XML Contraint
b. 由W3C定义
c. 很灵活,但非常复杂
3. Relax NG
a. 是个野孩子,不是由W3C定义
b. 非常非常简单直观
c. 对于需要频繁定义Contraint的Engineer非常合适
相互转化:
1. XML Document -> DTD ......

php获取xml属性值

<!-- xml格式
<foo xmlns="test">
<bar attr='a'></bar>
<bar attr='b'></bar>
<bar attr='c'></bar>
</foo>
-->
<?php
$dom = new DOMDocument();
if (!$dom->load('attr.xml'))
{
echo "load books.xml failed!<br>";
re ......

php解析xml示例

<!-- xml 格式
<books>
<book id='1001'>
<author>andylin</author>
<title>c language</title>
<publisher id="aaa">O'Reilly</publisher>
</book>

<book id='1002'>
<author>congfeng</author>
<t ......

jsp拦截器

ActionContext.getContext().getSession().put("login", "1");
<%
    String flag=(String)session.getAttribute("login");
    if(flag==null)
     response.sendRedirect("login.jsp");
     %> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号