XML (Extensible Markup Language)
XML은 사람과 기계가 모두 읽을 수 있는 형식으로 데이터를 구조화하기 위한 마크업 언어입니다. SOAP 웹 서비스, RSS 피드, 오피스 문서, 엔터프라이즈 데이터 교환에 널리 사용됩니다.
MIME 타입
text/css
유형
텍스트
압축
무손실
장점
- + Separates presentation from content (HTML)
- + Powerful layout systems: Flexbox, Grid, and container queries
- + Custom properties enable theming and dynamic values
- + Media queries enable responsive design for all screen sizes
단점
- − Global scope can cause unintended style conflicts
- − Browser compatibility differences require testing
- − No native variables before custom properties (pre-2017)
.CSS 사용 시점
XML은 엔터프라이즈 통합, SOAP 서비스, 오피스 문서(DOCX/XLSX/PPTX), 스키마 유효성 검사가 필요한 경우에 사용하세요.
기술 세부사항
XML은 태그(<요소>), 속성(key="value"), 텍스트 콘텐츠, 그리고 처리 명령()을 사용하는 트리 구조입니다. 스키마(XSD, DTD, RelaxNG)는 문서 구조를 정의합니다. XPath는 노드를 쿼리하고 XSLT는 XML을 다른 형식으로 변환합니다. 네임스페이스는 다른 어휘의 요소를 구분합니다.
역사
W3C는 1998년 SGML의 간소화 버전으로 XML 1.0을 출시했습니다. XML은 2000년대 데이터 교환 표준이 되었으나, 더 간결한 JSON과 YAML이 많은 영역에서 XML을 대체했습니다.
.CSS에서 변환
.CSS로 변환
관련 포맷
관련 용어
Learn More
CSS Units Explained: px, em, rem, vh, and When to Use Each
CSS offers over a dozen length units, each suited to different situations. Understanding the differences between absolute and relative units …
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Flexbox vs CSS Grid: A Practical Comparison
Flexbox and CSS Grid are complementary layout systems, not competitors. This guide clarifies when to reach for each one and …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …
Base64 Encoding: How It Works and When to Use It
Base64 converts binary data into ASCII text, making it safe for transmission through text-based systems. Learn when Base64 is the …
How to Create CSS Gradients: Linear, Radial, and Conic
CSS gradients create smooth color transitions without image files. Learn to build linear, radial, and conic gradients with precise control …