-
XML Naming rule컴공지식/웹 2024. 8. 30. 13:56
1, Element names are case-sensitive
엘리먼트 이름은 대소문자를 구분한다. 예를 들어 <name>과 <Name>은 서로 다른 엘리먼트다.
2. Element names must start with a letter or underscore
엘리먼트 이름은 반드시 문자(letter)나 밑줄(underscore, _)로 시작해야한다. 숫자나 다른 기호로 시작할 수 없다.
3. Element names cannot start with the letters "xml" (or "XML", "Xml", etc) – not anymore, but discouraged
엘리먼트 이름은 "xml"로 시작할 수 없다. 예전에는 아예 안됐지만 요즘은 권장하지 않는 정도이다. 괜히 쓰지 말자
4. Element names can contain letters, digits, hyphens, underscores, and periods
엘리먼트 이름 안에는 문자, 숫자, 하이픈(-), 밑줄(_), 점(.) 같은 것들을 포함할 수 있다.
예를 들어 <my-element_1.2> 이런 식으로 쓸 수 있다.
5. Element names cannot contain spaces
엘리먼트 이름에는 공백(space)이 들어갈 수 없다. <my element> 이렇게 쓰면 안 된다는 거다.
'컴공지식 > 웹' 카테고리의 다른 글
Entity References란? (0) 2024.09.03 XML의 Connector (0) 2024.09.03 JSP란? (0) 2024.08.27 XAMPP란? (0) 2024.08.27 MVC란? (0) 2024.08.27