{"success":true,"data":{"ext":"xsd","name":"XSD","description":"XML Schema Definition (XSD) is a schema language for describing the structure and data types of XML documents, standardized and maintained by the World Wide Web Consortium (W3C). It is used to validate XML data in web services, configuration files, data exchange systems, and document-oriented applications. XSD files are plain text and generally safe, though malformed schemas can cause validation errors; the format remains an established XML standard.","mime":["application/xml"],"risk_level":"Safe","signatures":[{"hex":"3C 3F 78 6D 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 3F 58 4D 4C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"EF BB BF 3C 3F 78 6D 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"FF FE 3C 00 3F 00 78 00 6D 00 6C 00","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"FE FF 00 3C 00 3F 00 78 00 6D 00 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 21 2D 2D","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["manifest","xml","xsl","xul","msc","other"],"usage":{"python":"def is_xsd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid XSD by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x3F, 0x78, 0x6D, 0x6C])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isXSD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x3F, 0x78, 0x6D, 0x6C]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsXSD(data []byte) bool {\n    signature := []byte{0x3C, 0x3F, 0x78, 0x6D, 0x6C}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"},"category":"Web & Config"}}